X-Git-Url: http://git.madism.org/?p=~madcoder%2Fdotfiles.git;a=blobdiff_plain;f=config%2Fzsh%2F20_environment;fp=config%2Fzsh%2F20_environment;h=f15bf7f43f09b5ee47d6352a7237e631c2eb294c;hp=8dc12cc884ceaf22f39073d14c6313eef8995963;hb=78a1688665d76849c9bc3c52afd211d439914dcb;hpb=1b0bfb33e57baf684511418a513b2003c46ad26f diff --git a/config/zsh/20_environment b/config/zsh/20_environment index 8dc12cc..f15bf7f 100644 --- a/config/zsh/20_environment +++ b/config/zsh/20_environment @@ -27,7 +27,16 @@ unset VERBOSE if [ $UID -eq 0 ]; then PATH=~root/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH else - PATH="${HOME}/local/bin:/usr/lib/ccache:${HOME}/bin:${PATH}" - LD_LIBRARY_PATH="${HOME}/local/lib" + case "${PATH}" in + *:${HOME}/local/bin:*) + ;; + *) + PATH="/usr/lib/ccache:${HOME}/local/bin:${HOME}/bin:${PATH}" + LD_LIBRARY_PATH="${HOME}/local/lib" + ;; + esac fi +if test -z "$TZ"; then + export TZ=$(cat /etc/timezone) +fi