.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:
parent
3c38f064d9
commit
2053967dfd
10
.zshrc
10
.zshrc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user