sh: Group directories first in ls views

Switch ls (exa) views to group any folders in current view and display
them before any files (works for l, L, ll, LL).
This commit is contained in:
Marty Oehme 2022-06-13 17:50:36 +02:00
parent a0968bcf93
commit 6c20ac04b1
Signed by: Marty
GPG key ID: B7538B8F50A1C800

View file

@ -24,12 +24,12 @@ alias :q="exit"
# ls defaults # ls defaults
if exist exa; then if exist exa; then
alias l="exa -l --git --git-ignore" alias l="exa -l --git --git-ignore --group-directories-first"
alias L="exa -hal --grid --git" alias L="exa -hal --grid --git --group-directories-first"
# a recursive tree # a recursive tree
# - usually want to change levels recursed with -L2 -L3 or similar # - usually want to change levels recursed with -L2 -L3 or similar
alias ll="exa --tree -L2" alias ll="exa --tree -L2 --group-directories-first"
alias LL="exa -a --tree -L2" alias LL="exa -a --tree -L2 --group-directories-first"
else else
alias l="ls -lhF" alias l="ls -lhF"
alias L="ls -lAhF" alias L="ls -lAhF"