From 1fa194ecab5c43405e800d81f1f6ba5e1fa68049 Mon Sep 17 00:00:00 2001 From: Moviuro Date: Sun, 17 Jan 2016 07:45:23 +0100 Subject: [PATCH] zshrc: test if ls is GNU ls instead of islinux() --- etc/zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 9040369..a09361c 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -442,7 +442,7 @@ fi # Natural sorting order on GNU ls(1) # OSX and IllumOS have a -v option that is not natural sorting -if islinux && ls -v / >/dev/null 2>&1; then +if ls --version |& grep -q 'GNU' >/dev/null 2>&1 && ls -v / >/dev/null 2>&1; then ls_options+=( -v ) fi -- 2.1.4