diff options
author | Matt Singleton <matt@xcolour.net> | 2014-02-08 18:48:18 -0500 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2014-02-08 18:48:18 -0500 |
commit | 3c4757dda2cf7484e47e3bbb8b1d4b08370404d8 (patch) | |
tree | 8d04df397176a229d309ca1d6112cb4c81ca63e0 | |
parent | 0ea0a60425835c8b538331a45c329640049c2a7f (diff) |
clearer ls colors
-rw-r--r-- | zsh/appearance.zsh | 8 | ||||
-rw-r--r-- | zshrc | 4 |
2 files changed, 7 insertions, 5 deletions
diff --git a/zsh/appearance.zsh b/zsh/appearance.zsh index 9796810..808a347 100644 --- a/zsh/appearance.zsh +++ b/zsh/appearance.zsh @@ -2,13 +2,13 @@ # colorize shell programs # ls (platform dependent) -if [ -e /usr/local/bin/gls ]; then - # if GNU ls is installed (e.g. on BSD), use it - alias ls='/usr/local/bin/gls --color=tty' +if which gls > /dev/null; then + # if GNU coreutils are installed under the 'g' prefix + alias ls='gls --color=tty' eval `gdircolors ~/.dircolors.conf` else # otherwise, detect which version of ls is on the path - if $(ls --color -d . &>/dev/null 2>&1); then + if ls --color -d . &>/dev/null 2>&1; then alias ls='ls --color=tty' eval `dircolors ~/.dircolors.conf` else @@ -1,4 +1,6 @@ -for config_file (~/.zsh/*.zsh) source $config_file +for config_file (~/.zsh/*.zsh); do + source $config_file +done export EDITOR=vim export LANG=en_US.UTF-8 |