.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 ln='gln'
|
||||||
alias find='gfind'
|
alias find='gfind'
|
||||||
alias sed='gsed'
|
alias sed='gsed'
|
||||||
|
alias dircolors='gdircolors'
|
||||||
# solarized dircolors (needs coreutils from pkgsrc)
|
|
||||||
[[ -r ~/.dircolors.ansi-dark ]] && eval `gdircolors ~/.dircolors.ansi-dark`
|
|
||||||
|
|
||||||
elif [[ "$OSTYPE" =~ ^linux*$ ]]; then
|
elif [[ "$OSTYPE" =~ ^linux*$ ]]; then
|
||||||
# aliases
|
# aliases
|
||||||
alias ls='ls -F --color=auto'
|
alias ls='ls -F --color=auto'
|
||||||
|
|
||||||
# solarized dircolors
|
|
||||||
[[ -r ~/.dircolors.ansi-dark ]] && eval `dircolors ~/.dircolors.ansi-dark`
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
alias less='less -R' # preserves colors in GNU coreutils' `less`
|
alias less='less -R' # preserves colors in GNU coreutils' `less`
|
||||||
|
|
||||||
|
# solarized dircolors
|
||||||
|
[[ -r ~/.dircolors.ansi-dark ]] && eval `dircolors ~/.dircolors.ansi-dark`
|
||||||
|
|
||||||
# Environment
|
# Environment
|
||||||
export PS1='[%n@%m: %~]$ '
|
export PS1='[%n@%m: %~]$ '
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
|
Loading…
Reference in New Issue
Block a user