zshrc/darwin.zsh

31 lines
936 B
Bash
Raw Normal View History

2011-02-07 17:42:37 +01:00
# @author Philipp Frischmuth <frischmuth@informatik.uni-leipzig.de>
# @author Sebastian Tramp <mail@sebastian.tramp.name>
2011-02-07 17:42:37 +01:00
# @license http://opensource.org/licenses/gpl-license.php
#
# darwin specific fixes / alignments
2011-02-07 17:18:41 +01:00
# Darwin ls command does not support --color option.
2012-07-18 08:05:04 +02:00
alias ls=' ls'
#alias myls=' ls'
# use gnu ls instead of bsd ls
alias myls=' gls -C -F -h --color=always'
2011-02-07 17:18:41 +01:00
# The OSX way for ls colors.
export CLICOLOR=1
export LSCOLORS="gxfxcxdxbxegedabagacad"
# brew install zsh-completions
2012-08-22 15:21:22 +02:00
export FPATH=/usr/local/share/zsh-completions:$FPATH
# activate gls colors
if [[ -a $HOME/.dir_colors ]]; then
if [[ "$TERM" == *256* ]]; then
which gdircolors > /dev/null && eval "`gdircolors -b $HOME/.dir_colors`"
else
# standard colors for non-256-color terms
which gdircolors > /dev/null && eval "`gdircolors -b`"
fi
else
which gdircolors > /dev/null && eval "`gdircolors -b`"
fi