Signed-off-by: Pierre Habouzit <madcoder@debian.org>
export RLWRAP_HOME="$HOME/.cache/rlwrap/"
export GTK_IM_MODULE=xim
+export BROWSER=chromium-browser
+
export LC_MESSAGES=C
unset LC_ALL
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"
+fi
+
autoload zmv
alias mmv='noglob zmv -W'
-alias su='export XAUTHORITY=${HOME}/.Xauthority ; sudo -s'
-alias sudo='export XAUTHORITY=${HOME}/.Xauthority ; sudo'
+if test -n "$XAUTHORITY"; then
+ alias su='sudo -E -s'
+else
+ alias su='export XAUTHORITY=${HOME}/.Xauthority ; sudo -s'
+ alias sudo='export XAUTHORITY=${HOME}/.Xauthority ; sudo'
+fi
alias du="du -hcs"
alias df="df -h"
}
if [ $UID -eq 0 ]; then
- PATH=~root/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH
PROMPT="%{$reset_color$fg_bold[yellow]%}[%{$fg_bold[red]%}%n %m%{$fg_bold[yellow]%}]%{$reset_color%} "
RPROMPT="%{$reset_color$fg_no_bold[red]%}(%{$fg_bold[red]%}%~%{$fg_no_bold[red]%})%{$reset_color%} "
else
- PATH="/usr/lib/ccache:${HOME}/bin:${PATH}"
_mad_prompt_setup
fi