removed files
[~madcoder/dotfiles.git] / config / zsh / 20_environment
index 7de3640..30b6660 100644 (file)
@@ -1,21 +1,48 @@
 #! /bin/zsh
 
 export EMAIL="pierre.habouzit@m4x.org"
-export FULLNAME="Pierre Habouzit"
+export NAME="Pierre Habouzit"
+export FULLNAME="$NAME"
 
 export DEBEMAIL="madcoder@debian.org"
-export DEBFULLNAME=$FULLNAME
+export DEBFULLNAME="$NAME"
 
 export CVS_RSH="ssh"
 export MANWIDTH=80
 export EDITOR=vim
 export VISUAL=vim
-export CCACHE_DIR=$HOME/.cache/ccache
+export CCACHE_DIR="$HOME/.cache/ccache"
 export CCACHE_NOCOMPRESS=NoThanks
+export CCACHE_HARDLINK=YesPlease
 
-export RLWRAP_HOME=~/.cache/rlwrap/
+export RLWRAP_HOME="$HOME/.cache/rlwrap/"
 export GTK_IM_MODULE=xim
 
+export BROWSER=chromium-browser
+
 export LC_MESSAGES=C
-export LC_ALL=
-unset VERBOSE
+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="${HOME}/bin:/usr/local/bin:${PATH}"
+            case $(uname) in
+                Darwin)
+                    ;;
+                *)
+                    LD_LIBRARY_PATH="${HOME}/local/lib"
+                    ;;
+            esac
+            ;;
+    esac
+fi
+
+if test -f /etc/timezone -a -z "$TZ"; then
+    export TZ=$(cat /etc/timezone)
+fi