# # Zsh configuration file # Since 2006, kolter # # This file is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY # # editor export EDITOR="emacs" # email address export EMAIL="kolter@openics.org" # email address for anonymous ftp export EMAIL_ADDR=pwet@dev.null # redefine PATH export PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/games # define personal zsh config directory if [ -n "$APPSHOME" ] ; then export DOTZSHDIR="$APPSHOME/.zsh.d" else export DOTZSHDIR="$HOME/.zsh.d" fi # checking events on system (users login/logout, etc...) watch=(notme) LOGCHECK=5 WATCHFMT="[%T] %n has %a %l from %M" # overide insecure stuff with compinit while using 'sudo zsh' # my functions (don't forget to modify fpath before call compinit !!) [ -z "$SUDO_USER" -a $UID != 0 ] && fpath=($DOTZSHDIR/functions.d $fpath) autoload -U zutil autoload -U compinit autoload -U complist compinit # override default umask umask 0022 # per OS resource file local os=$(uname) [ -r "$DOTZSHDIR/os.d/${os}.zsh" ] && source "$DOTZSHDIR/os.d/${os}.zsh" # sourcing resource files for f in $DOTZSHDIR/config.d/*.zsh; do [ -r "$f" ] && source $f done # using 'sudo zsh' if [ "$SUDO_USER" -a $UID = 0 ]; then # define root history path export HISTFILE="$DOTZSHDIR/history/history_root" # ugly hack : reset some file perms to normal to avoid warnings chmod 0644 ~/.zcompdump chown $SUDO_USER:$SUDO_USER ~/.zcompdump # unsetting TMPDIR when logged as root [ -z "$TMPDIR" ] && unset TMPDIR fi # sourcing extra file [ -r "$DOTZSHDIR/extra.zsh" ] && source "$DOTZSHDIR/extra.zsh"