123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- 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
- for d in $DOTZSHDIR/externals.d/*; do
- if [ -f "$d/${d##*/}.zsh" ]; then
- source "$d/${d##*/}.zsh"
- 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
|