From c06666be9d5039d97f346264c0c7b4aca74fe23f Mon Sep 17 00:00:00 2001 From: Moviuro Date: Fri, 15 Jan 2016 07:35:14 +0100 Subject: [PATCH] zshrc: add the islinux() test before testing for ls -v switch See https://github.com/grml/grml-etc-core/pull/55#issuecomment-171782089 --- etc/zsh/zshrc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index afcb5b7..9040369 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -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 -- 2.1.4