8c1e026be6a9ee8913efb665cf27934a3086b707
[~madcoder/dotfiles.git] / config / zsh / 20_environment
1 #! /bin/zsh
2
3 export EMAIL="pierre.habouzit@m4x.org"
4 export NAME="Pierre Habouzit"
5 export FULLNAME="$NAME"
6
7 export DEBEMAIL="madcoder@debian.org"
8 export DEBFULLNAME="$NAME"
9
10 export CVS_RSH="ssh"
11 export MANWIDTH=80
12 export EDITOR=vim
13 export VISUAL=vim
14 export CCACHE_DIR="$HOME/.cache/ccache"
15 export CCACHE_NOCOMPRESS=NoThanks
16 export CCACHE_HARDLINK=YesPlease
17
18 export RLWRAP_HOME="$HOME/.cache/rlwrap/"
19 export GTK_IM_MODULE=xim
20
21 export BROWSER=chromium-browser
22 export PYTHONPATH=/home/madcoder/local/lib/python/
23
24 export LC_MESSAGES=C
25 unset  LC_ALL
26 unset  VERBOSE
27
28 if [ $(whoami) = root ]; then
29     PATH=~root/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH
30 else
31     case "${PATH}" in
32         *:${HOME}/local/bin:*)
33             ;;
34         *)
35             PATH="/usr/lib/ccache:${HOME}/local/bin:${HOME}/bin:${PATH}"
36             LD_LIBRARY_PATH="${HOME}/local/lib"
37             ;;
38     esac
39 fi
40
41 if test -f /etc/timezone -a -z "$TZ"; then
42     export TZ=$(cat /etc/timezone)
43 fi