Update ls aliases for hidden files
This commit is contained in:
parent
a91388dd96
commit
b38cb2d153
16
zshrc
16
zshrc
|
@ -28,22 +28,27 @@ if [ ! $(command -v exa) ]; then
|
||||||
## with ls {{{
|
## with ls {{{
|
||||||
alias ll='ls -l'
|
alias ll='ls -l'
|
||||||
## Show hidden files
|
## Show hidden files
|
||||||
alias la='ls -lA'
|
alias la='ll -A'
|
||||||
alias llh='ls -l | head'
|
## Show hidden only
|
||||||
alias llm='ls -l | $PAGER'
|
alias lla='la --directory .*'
|
||||||
|
alias l.='ls -d .*'
|
||||||
|
alias llh='ll -l | head'
|
||||||
|
alias llm='ll -l | $PAGER'
|
||||||
alias llw='ls | wc -l'
|
alias llw='ls | wc -l'
|
||||||
## Sort by date
|
## Sort by 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 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/-/|/'\'''
|
||||||
## }}}
|
## }}}
|
||||||
## with exa {{{
|
## with exa {{{
|
||||||
else
|
else
|
||||||
alias ll='exa --color=always --long --group --git'
|
alias ll='exa --color=always --long --group --git'
|
||||||
## Show hidden files
|
## Show hidden files
|
||||||
alias la='ll --all'
|
alias la='ll --all --sort .name'
|
||||||
|
## Show hidden only
|
||||||
|
alias lla='ll --list-dirs .*'
|
||||||
|
alias l.='ls -d .*'
|
||||||
alias llh='ll | head'
|
alias llh='ll | head'
|
||||||
alias llm='ll | less'
|
alias llm='ll | less'
|
||||||
alias llw='ls | wc -l'
|
alias llw='ls | wc -l'
|
||||||
|
@ -53,7 +58,6 @@ else
|
||||||
## Give a tree of current directory
|
## Give a tree of current directory
|
||||||
alias llt='ll --tree'
|
alias llt='ll --tree'
|
||||||
alias lld='ll --group-directories-first'
|
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/-/|/'\'''
|
alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'''
|
||||||
fi
|
fi
|
||||||
## }}}
|
## }}}
|
||||||
|
|
Loading…
Reference in New Issue