group-directories-first was introduced in coreutils 6

This commit is contained in:
Ben O'Hara 2012-06-17 14:40:29 +10:00
parent 1cb064898f
commit 0aa4cf91e1

View file

@ -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