From cdf2dc0e63270120a3ac6f4defb5cc19c961b773 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 24 Aug 2011 00:31:03 +0200 Subject: Tweaks to make zsh config run on Mac OS X without GNU coreutils --- .zsh/zshrc/00_colours | 2 +- .zsh/zshrc/30_aliases | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.zsh/zshrc/00_colours b/.zsh/zshrc/00_colours index ad3847e..4f00519 100644 --- a/.zsh/zshrc/00_colours +++ b/.zsh/zshrc/00_colours @@ -28,7 +28,7 @@ else fi # colour setup for ls -eval $(dircolors -b) +is_darwin || eval $(dircolors -b) # colour setup for ls on OS X: is_darwin && export CLICOLOR=1 diff --git a/.zsh/zshrc/30_aliases b/.zsh/zshrc/30_aliases index dc151b1..369b479 100644 --- a/.zsh/zshrc/30_aliases +++ b/.zsh/zshrc/30_aliases @@ -22,8 +22,8 @@ alias m='mount' alias u='umount' # enable color support of ls -if [ "${TERM}" != "dumb" ]; then - alias ls='ls --color=auto' +if [ "${TERM}" != "dumb" ] ; then + is_darwin || alias ls='ls --color=auto' fi # use colors when browsing man pages, but only if not using LESS_TERMCAP_* -- cgit v1.2.3-54-g00ecf