aboutsummaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorMatt Singleton <matthew.j.singleton@gmail.com>2011-03-31 03:20:27 -0400
committerMatt Singleton <matthew.j.singleton@gmail.com>2011-03-31 03:20:27 -0400
commit47d9a76d9498689b2213d69ff8295623717c9998 (patch)
treec43f4163a501b4329ae925aecbf1bcd4332cebd1 /zsh
parent61ad42690140f9a0b7f9614af2ce2756613e04d3 (diff)
make ls colors platform independent
Diffstat (limited to 'zsh')
-rw-r--r--zsh/appearance.zsh9
1 files changed, 7 insertions, 2 deletions
diff --git a/zsh/appearance.zsh b/zsh/appearance.zsh
index f13b218..04d270f 100644
--- a/zsh/appearance.zsh
+++ b/zsh/appearance.zsh
@@ -2,8 +2,13 @@
# colorize shell programs
# ls (platform dependent)
-ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G'
-export LSCOLORS="exgxbxdxcxegedxbxgxcxd"
+if $(ls --color -d . &>/dev/null 2>&1); then
+ alias ls='ls --color=tty'
+ export LS_COLORS="di=34;40:ln=36;40:so=31;40:pi=33;40:ex=32;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:"
+else
+ alias ls='ls -G'
+ export LSCOLORS="exgxbxdxcxegedxbxgxcxd"
+fi
# grep
export GREP_OPTIONS='--color=auto'