Update aliases.zsh

This commit is contained in:
the_4n0nym0u53 2022-01-31 02:33:27 +01:00 committed by GitHub
parent f9c79caa78
commit e399436a94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"