From fe655567b044b39061fedaf074be2f2de7dc43da Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 12 Jan 2022 11:46:40 +0100 Subject: [PATCH] Update exa aliases --- zshrc | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/zshrc b/zshrc index 948ef03..f2b604c 100644 --- a/zshrc +++ b/zshrc @@ -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