.zshrc: Use gdircolors for dircolors on Mac OS X

Then the dircoloring can be platform agnostic.

Signed-off-by: Alan Orth <alan.orth@gmail.com>
This commit is contained in:
Alan Orth 2015-05-10 12:32:50 +03:00
parent 3c38f064d9
commit 2053967dfd
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

10
.zshrc
View File

@ -40,20 +40,18 @@ if [[ "$OSTYPE" =~ ^darwin.*$ ]]; then
alias ln='gln'
alias find='gfind'
alias sed='gsed'
# solarized dircolors (needs coreutils from pkgsrc)
[[ -r ~/.dircolors.ansi-dark ]] && eval `gdircolors ~/.dircolors.ansi-dark`
alias dircolors='gdircolors'
elif [[ "$OSTYPE" =~ ^linux*$ ]]; then
# aliases
alias ls='ls -F --color=auto'
# solarized dircolors
[[ -r ~/.dircolors.ansi-dark ]] && eval `dircolors ~/.dircolors.ansi-dark`
fi
alias less='less -R' # preserves colors in GNU coreutils' `less`
# solarized dircolors
[[ -r ~/.dircolors.ansi-dark ]] && eval `dircolors ~/.dircolors.ansi-dark`
# Environment
export PS1='[%n@%m: %~]$ '
export EDITOR=vim