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