dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 7111150fdf858928cddba82633dda920dc3b490e
parent 7cf03ba349a34c2f3cea918267baf231526321e2
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Tue, 11 Mar 2014 10:45:48 +0100

ls options are different in OSX and Linux

Diffstat:
M.zshrc | 8++++++--
1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/.zshrc b/.zshrc @@ -70,8 +70,12 @@ alias lla='ls -lA' alias l='ls -CF' # enable color support of ls and also add handy aliases -alias ls='ls --color=auto' -#alias ls='ls -G' +ARCH=$(uname) +if [[ "$ARCH" != 'Darwin' ]]; then + alias ls='ls --color=auto' +else + alias ls='ls -G' +fi #alias dir='dir --color=auto' #alias vdir='vdir --color=auto' alias grep='grep --color=auto'