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:
parent
a0968bcf93
commit
6c20ac04b1
1 changed files with 4 additions and 4 deletions
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue