X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=etc%2Fzsh%2Fzshrc;h=2c01d27c17927c7bab22a338740e90ec6698683d;hb=faa0929b692212f492f7fca35d551c2caa5860ce;hp=2a70da55b1a13f96144225f9a139c2985a20ed34;hpb=e2ee5436065b022bdc4b060fa1bbf1d33437a8e7;p=grml-etc-core.git diff --git a/etc/zsh/zshrc b/etc/zsh/zshrc index 2a70da5..2c01d27 100644 --- a/etc/zsh/zshrc +++ b/etc/zsh/zshrc @@ -152,6 +152,11 @@ else isgrmlsmall() { return 1 } fi +isdarwin(){ + [[ $OSTYPE == darwin* ]] && return 0 + return 1 +} + #f1# are we running within an utf environment? isutfenv() { case "$LANG $CHARSET $LANGUAGE" in @@ -427,6 +432,18 @@ export SHELL='/bin/zsh' # color setup for ls: check_com -c dircolors && eval $(dircolors -b) +# color setup for ls on OS X: +isdarwin && export CLICOLOR=1 + +# do MacPorts setup on darwin +if isdarwin && [[ -d /opt/local ]]; then + # Note: PATH gets set in /etc/zprofile on Darwin, so this can't go into + # zshenv. + PATH="/opt/local/bin:/opt/local/sbin:$PATH" + MANPATH="/opt/local/share/man:$MANPATH" +fi +# do Fink setup on darwin +isdarwin && xsource /sw/bin/init.sh # set width of man pages to 80 for more convenient reading # export MANWIDTH=${MANWIDTH:-80}