case $(uname -s) in
   Darwin) alias colorls='ls -G' ;;
   *)      alias colorls='ls --color=auto' ;;
esac
alias l='colorls -a'
alias ll='colorls -la'
export EDITOR='vi'

case $(ls --version 2> /dev/null) in
   *GNU*) alias colorls='ls --color=auto' ;;
   *)     alias colorls='ls -G' ;;
esac
alias l='colorls -a'
alias ll='colorls -la'
export EDITOR='vi'

Improve colorls choice on Darwin in modules/default
Improve colorls choice on Darwin in modules/default
