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 '
|
||||||
|
|
||||||
alias exa='exa --group-directories-first'
|
if command -v exa >/dev/null; then
|
||||||
alias l='exa -1'
|
alias exa='exa --group-directories-first'
|
||||||
alias ll='exa -l'
|
alias l='exa -1'
|
||||||
alias la='LC_COLLATE=C exa -la'
|
alias ll='exa -l'
|
||||||
alias mk=make
|
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 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