1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- export PATH=$HOME/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:/usr/games
- export DOTZSHDIR="$HOME/.zsh.d"
- [ -z "$SUDO_USER" -a $UID != 0 ] && fpath=($DOTZSHDIR/functions.d $fpath)
- autoload -U zutil
- autoload -U compinit
- autoload -U complist
- compinit
- for f in $DOTZSHDIR/lib.d/*.zsh; do
- [ -r "$f" ] && source $f
- done
- local os=$(uname)
- [ -r "$DOTZSHDIR/os.d/${os}.zsh" ] && source "$DOTZSHDIR/os.d/${os}.zsh"
- for f in $DOTZSHDIR/config.d/*.zsh; do
- [ -r "$f" ] && source $f
- done
- if [ "$SUDO_USER" -a $UID = 0 ]; then
-
- export HISTFILE="$DOTZSHDIR/history/history_root"
-
-
- chmod 0644 ~/.zcompdump
- chown $SUDO_USER:$SUDO_USER ~/.zcompdump
-
- fi
- [ -r "$DOTZSHDIR/extra.zsh" ] && source "$DOTZSHDIR/extra.zsh"
|