From 3a92d0893b72940dbbf390bd0084ec88cb0759ee Mon Sep 17 00:00:00 2001 From: Paul Gideon Dann Date: Tue, 13 Mar 2012 16:11:54 +0000 Subject: [PATCH] Fixing conditional brackets that should be arithmetic. --- alias.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alias.zsh b/alias.zsh index dc3a3d79..6d12f53d 100644 --- a/alias.zsh +++ b/alias.zsh @@ -16,7 +16,7 @@ if zstyle -t ':omz:alias:ls' color; then export CLICOLOR=1 export LSCOLORS="exfxcxdxbxegedabagacad" ls --color -d . &>/dev/null 2>&1 - if [[ $? == 0 ]]; then + if (( $? == 0 )); then alias ls='ls --color=auto -F' else alias ls='ls -GF'