Update exa aliases

This commit is contained in:
Jeremy Gardais 2022-01-12 11:46:40 +01:00
parent 2d1e4172ec
commit fe655567b0
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 13 additions and 12 deletions

25
zshrc
View File

@ -26,27 +26,28 @@ alias rm='rm --interactive'
# Raccourcis pour 'ls' # Raccourcis pour 'ls'
if [ ! $(command -v exa) ]; then if [ ! $(command -v exa) ]; then
alias ll='ls -l' alias ll='ls -l'
## Show hidden files
alias la='ls -lA' alias la='ls -lA'
alias llh='ls -l | head' alias llh='ls -l | head'
alias llm='ls -l | $PAGER' alias llm='ls -l | $PAGER'
alias llv='ls -l | vimmanpager' ## Sort by date
##Classer par date
alias lll='ls -l -t -h -r' alias lll='ls -l -t -h -r'
alias llll='ls -l -t -h -r' alias llll='ls -l -t -h -r'
alias lld='ls -l -d */ -h' alias lld='ls -l -d */ -h'
alias l.='ls -d .*' alias l.='ls -d .*'
alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\''' alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'''
else else
alias ll='exa --color=always -l --git' alias ll='exa --color=always --long --group --git'
alias la='exa --color=always -la --git' ## Show hidden files
alias llh='exa --color=always -l | head' alias la='ll --all'
alias llm='exa --color=always -l --git | less' alias llh='ll | head'
alias llv='ls -l | vimmanpager' alias llm='ll | less'
##Classer par date ## Sort by date
alias lll='exa --color=always -l --sort=modified --git' alias lll='ll --sort=modified'
alias llll='exa --color=always -l --sort=modified --git' alias llll='ll --sort=modified'
alias llt='exa --color=always -l --git --tree' ## Give a tree of current directory
alias lld='exa --color=always -l --group-directories-first' alias llt='ll --tree'
alias lld='ll --group-directories-first'
alias l.='ls -d .*' alias l.='ls -d .*'
alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\''' alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'''
fi fi