From e399436a940d744ec1024a759e6fef76747f8102 Mon Sep 17 00:00:00 2001 From: the_4n0nym0u53 Date: Mon, 31 Jan 2022 02:33:27 +0100 Subject: [PATCH] Update aliases.zsh --- zsh/.config/zsh/aliases.zsh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/zsh/.config/zsh/aliases.zsh b/zsh/.config/zsh/aliases.zsh index 9aab7bb..ef0447b 100644 --- a/zsh/.config/zsh/aliases.zsh +++ b/zsh/.config/zsh/aliases.zsh @@ -3,9 +3,14 @@ alias cp="cp -i" alias mv="mv -i" alias rm="rm -i" alias mkdir="mkdir -p" - (( ${+commands[srm]} )) && alias srm="srm -i" +# Navigation +alias ..="cd .." +alias ...="cd ../.." +alias ....="cd ../../.." +alias .....="cd ../../../.." + # Misc. alias cl="clear" alias grep="grep --color=always" @@ -13,7 +18,6 @@ alias ls="ls --color=always" alias q="exit" alias u="update.sh" alias zgrep="zgrep --color=always" - (( ${+commands[tmux]} )) && alias tmux="tmux -2u" if (( ${+commands[exa]} )); then @@ -49,9 +53,8 @@ elif [[ $(uname -o) == "GNU/Linux" ]]; then elif [[ $(lsb_release -si) == "Fedora" ]]; then alias dnfin="sudo dnf install" alias dnfrm="sudo dnf remove" - alias dnfqi="sudo dnf info" alias dnfqs="sudo dnf list installed" - alias dnfsi="sudo dnf repoquery --info" + alias dnfsi="sudo dnf info" alias dnfss="sudo dnf search" elif [[ $(lsb_release -si) == "Ubuntu" ]]; then alias aptin="sudo apt install"