X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=config%2Fzsh%2F20_environment;h=6c33ec7c672d7573397817b238d7677c9a75622c;hb=5d1af5e2d843cdca9551fcdd769ebad8075d6750;hp=1d96c553aee02914648dc3dc2f4704e21114502e;hpb=be76a648340f421704f96d132e22f71771c68fe2;p=~madcoder%2Fdotfiles.git diff --git a/config/zsh/20_environment b/config/zsh/20_environment index 1d96c55..6c33ec7 100644 --- a/config/zsh/20_environment +++ b/config/zsh/20_environment @@ -13,10 +13,31 @@ 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 +export BROWSER=chromium-browser +export PYTHONPATH=/home/madcoder/local/lib/python/ + export LC_MESSAGES=C unset LC_ALL unset VERBOSE + +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" + ;; + esac +fi + +if test -z "$TZ"; then + export TZ=$(cat /etc/timezone) +fi