From 3c4757dda2cf7484e47e3bbb8b1d4b08370404d8 Mon Sep 17 00:00:00 2001 From: Matt Singleton Date: Sat, 8 Feb 2014 18:48:18 -0500 Subject: clearer ls colors --- zsh/appearance.zsh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'zsh') 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 -- cgit v1.2.3