forked from seebi/zshrc
-
Notifications
You must be signed in to change notification settings - Fork 1
/
darwin.zsh
31 lines (27 loc) · 1.01 KB
/
darwin.zsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# @author Philipp Frischmuth <frischmuth@informatik.uni-leipzig.de>
# @author Sebastian Tramp <mail@sebastian.tramp.name>
# @license http://opensource.org/licenses/gpl-license.php
#
# darwin specific fixes / alignments
# Darwin ls command does not support --color option.
alias ls=' ls'
#alias myls=' ls'
# use gnu ls instead of bsd ls
alias myls=' gls -C -F -h --color=always'
# The OSX way for ls colors.
export CLICOLOR=1
export LSCOLORS="gxfxcxdxbxegedabagacad"
# brew install zsh-completions
export FPATH=/usr/local/share/zsh-completions:/usr/local/share/zsh/functions:$FPATH
# activate gls colors
export ZSH_DIRCOLORS="$ZSH_CONFIG/dircolors-solarized/dircolors.256dark"
if [[ -a $ZSH_DIRCOLORS ]]; then
if [[ "$TERM" == *256* ]]; then
which gdircolors > /dev/null && eval "`gdircolors -b $ZSH_DIRCOLORS`"
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