Refactor zsh aliases

This commit is contained in:
Henrik Lissner 2019-11-26 17:04:55 -05:00
parent eba864d724
commit b58381faf0
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -5,14 +5,13 @@ alias mv='mv -i'
alias mkdir='mkdir -p'
alias wget='wget -c'
alias rg='noglob rg'
alias bc='bc -lq'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias rg='noglob rg'
alias ag='noglob ag -p $HOME/.config/ag/agignore'
### convenience
alias ..='cd ..'
@ -24,12 +23,17 @@ alias q=exit
alias clr=clear
alias sudo='sudo '
alias exa='exa --group-directories-first'
alias l='exa -1'
alias ll='exa -l'
alias la='LC_COLLATE=C exa -la'
alias mk=make
if command -v exa >/dev/null; then
alias exa='exa --group-directories-first'
alias l='exa -1'
alias ll='exa -l'
alias la='LC_COLLATE=C exa -la'
else
alias l='ls -1'
alias ll='ls -l'
fi
alias mk=make
alias rcp='rsync -vaP --delete'
alias rmirror='rsync -rtvu --delete'
alias gurl='curl --compressed'