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