group-directories-first was introduced in coreutils 6
This commit is contained in:
parent
1cb064898f
commit
0aa4cf91e1
1 changed files with 3 additions and 1 deletions
|
@ -56,7 +56,9 @@ alias type='type -a'
|
|||
# ls
|
||||
if is-callable 'dircolors'; then
|
||||
# GNU Core Utilities
|
||||
alias ls='ls --group-directories-first'
|
||||
if [[ `dircolors --version |head -1 |awk '{print $NF}'` > 6 ]]; then
|
||||
alias ls='ls --group-directories-first'
|
||||
fi
|
||||
|
||||
if zstyle -t ':omz:module:utility:ls' color; then
|
||||
if [[ -s "$HOME/.dir_colors" ]]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue