|
@@ -6,29 +6,11 @@
|
|
# but WITHOUT ANY WARRANTY
|
|
# 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
|
|
# redefine PATH
|
|
export PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/games
|
|
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
|
|
# 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"
|
|
|
|
|
|
+export DOTZSHDIR="$HOME/.zsh.d"
|
|
|
|
|
|
# overide insecure stuff with compinit while using 'sudo zsh'
|
|
# overide insecure stuff with compinit while using 'sudo zsh'
|
|
# my functions (don't forget to modify fpath before call compinit !!)
|
|
# my functions (don't forget to modify fpath before call compinit !!)
|
|
@@ -39,14 +21,16 @@ autoload -U compinit
|
|
autoload -U complist
|
|
autoload -U complist
|
|
compinit
|
|
compinit
|
|
|
|
|
|
-# override default umask
|
|
|
|
-umask 0022
|
|
|
|
|
|
+# include custom functions
|
|
|
|
+for f in $DOTZSHDIR/lib.d/*.zsh; do
|
|
|
|
+ [ -r "$f" ] && source $f
|
|
|
|
+done
|
|
|
|
|
|
# per OS resource file
|
|
# per OS resource file
|
|
local os=$(uname)
|
|
local os=$(uname)
|
|
[ -r "$DOTZSHDIR/os.d/${os}.zsh" ] && source "$DOTZSHDIR/os.d/${os}.zsh"
|
|
[ -r "$DOTZSHDIR/os.d/${os}.zsh" ] && source "$DOTZSHDIR/os.d/${os}.zsh"
|
|
|
|
|
|
-# sourcing resource files
|
|
|
|
|
|
+# sourcing config files
|
|
for f in $DOTZSHDIR/config.d/*.zsh; do
|
|
for f in $DOTZSHDIR/config.d/*.zsh; do
|
|
[ -r "$f" ] && source $f
|
|
[ -r "$f" ] && source $f
|
|
done
|
|
done
|
|
@@ -59,9 +43,7 @@ if [ "$SUDO_USER" -a $UID = 0 ]; then
|
|
# ugly hack : reset some file perms to normal to avoid warnings
|
|
# ugly hack : reset some file perms to normal to avoid warnings
|
|
chmod 0644 ~/.zcompdump
|
|
chmod 0644 ~/.zcompdump
|
|
chown $SUDO_USER:$SUDO_USER ~/.zcompdump
|
|
chown $SUDO_USER:$SUDO_USER ~/.zcompdump
|
|
-
|
|
|
|
- # unsetting TMPDIR when logged as root
|
|
|
|
- [ -z "$TMPDIR" ] && unset TMPDIR
|
|
|
|
|
|
+
|
|
fi
|
|
fi
|
|
|
|
|
|
# sourcing extra file
|
|
# sourcing extra file
|