X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=config%2Fzsh%2F20_environment;h=f15bf7f43f09b5ee47d6352a7237e631c2eb294c;hb=45b92f948ad78776c745acc1ae7cc9f7041e3a34;hp=30be9fd1254d7f39ec89cad9666e2c49219d2bed;hpb=13cef426cc23a32b4b9dc830e9e03688f3c475a9;p=~madcoder%2Fdotfiles.git diff --git a/config/zsh/20_environment b/config/zsh/20_environment index 30be9fd..f15bf7f 100644 --- a/config/zsh/20_environment +++ b/config/zsh/20_environment @@ -13,6 +13,7 @@ export EDITOR=vim export VISUAL=vim export CCACHE_DIR="$HOME/.cache/ccache" export CCACHE_NOCOMPRESS=NoThanks +export CCACHE_HARDLINK=YesPlease export RLWRAP_HOME="$HOME/.cache/rlwrap/" export GTK_IM_MODULE=xim @@ -26,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