X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=config%2Fzsh%2F20_environment;h=bc2958a7ebc69822262d7c6087ff49972e3566a4;hb=b432593cd0e91f2b0eb9bba5d106b563cd98e916;hp=7de3640d5d6e10d2745a0531bf543e4342fc43cd;hpb=5923f706617b966f114656c78bd60108d4ab1dde;p=~madcoder%2Fdotfiles.git diff --git a/config/zsh/20_environment b/config/zsh/20_environment index 7de3640..bc2958a 100644 --- a/config/zsh/20_environment +++ b/config/zsh/20_environment @@ -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="/usr/lib/ccache:${HOME}/local/bin:${HOME}/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