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