Skip to content

Commit

Permalink
zshrc: add the islinux() test before testing for ls -v switch
Browse files Browse the repository at this point in the history
  • Loading branch information
moviuro committed Jan 15, 2016
1 parent 2735a11 commit c06666b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion etc/zsh/zshrc
Expand Up @@ -441,7 +441,8 @@ elif ls -G / >/dev/null 2>&1; then
fi

# Natural sorting order on GNU ls(1)
if ls -v / >/dev/null 2>&1; then
# OSX and IllumOS have a -v option that is not natural sorting
if islinux && ls -v / >/dev/null 2>&1; then
ls_options+=( -v )
fi

Expand Down

0 comments on commit c06666b

Please sign in to comment.