X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=config%2Fzsh%2F20_environment;h=30b6660ff654e32269b82143f443e5a6e510ae33;hb=HEAD;hp=f15bf7f43f09b5ee47d6352a7237e631c2eb294c;hpb=78a1688665d76849c9bc3c52afd211d439914dcb;p=~madcoder%2Fdotfiles.git diff --git a/config/zsh/20_environment b/config/zsh/20_environment index f15bf7f..30b6660 100644 --- a/config/zsh/20_environment +++ b/config/zsh/20_environment @@ -24,19 +24,25 @@ export LC_MESSAGES=C unset LC_ALL unset VERBOSE -if [ $UID -eq 0 ]; then +if [ $(whoami) = root ]; then PATH=~root/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH else case "${PATH}" in *:${HOME}/local/bin:*) ;; *) - PATH="/usr/lib/ccache:${HOME}/local/bin:${HOME}/bin:${PATH}" - LD_LIBRARY_PATH="${HOME}/local/lib" + PATH="${HOME}/bin:/usr/local/bin:${PATH}" + case $(uname) in + Darwin) + ;; + *) + LD_LIBRARY_PATH="${HOME}/local/lib" + ;; + esac ;; esac fi -if test -z "$TZ"; then +if test -f /etc/timezone -a -z "$TZ"; then export TZ=$(cat /etc/timezone) fi