--- /dev/null
+# zshenv/00_fpath
+#
+# Adds local functions directory to $fpath
+#
+# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
+# Released under the terms of the Artistic Licence 2.0
+#
+# Source repository: http://git.madduck.net/v/etc/zsh.git
+#
+
+fpath=($ZDOTDIR/func $fpath)
+
+# vim:ft=zsh
#
if [ -n "$ZDOTDIR" ]; then
- command rm -f $ZDOTDIR/**/*.zwc(.N) $ZDOTDIR/**/.*.zwc(.N) $ZVAR/**/*.zwc(.N)
- for f ($ZDOTDIR/.*(@) $ZDOTDIR/*(.) $ZDOTDIR/**/*(.) $ZVAR/comp-$HOST) \
+ command rm -f $ZDOTDIR/**/*.zwc(.N) $ZDOTDIR/**/.*.zwc(.N) $ZVARDIR/**/*.zwc(.N)
+ for f ($ZDOTDIR/.*(@) $ZDOTDIR/*(.) $ZDOTDIR/**/*(.) $ZVARDIR/comp-$HOST) \
zcompile $f
fi
+++ /dev/null
-# zshenv/00_fpath
-#
-# Adds local functions directory to $fpath
-#
-# Copyright © 1994–2008 martin f. krafft <madduck@madduck.net>
-# Released under the terms of the Artistic Licence 2.0
-#
-# Source repository: http://git.madduck.net/v/etc/zsh.git
-#
-
-FPATH="$ZDOTDIR/func:$FPATH"
-
-# vim:ft=zsh
# Source repository: http://git.madduck.net/v/etc/zsh.git
#
-export VAR_RELATIVE=.var
-export VAR=$HOME/$VAR_RELATIVE
-export ZVAR=$VAR/zsh
-export BIN_RELATIVE=.bin
-export BIN=$HOME/$BIN_RELATIVE
+export VARDIR_REL=.var
+export VARDIR=$HOME/$VARDIR_REL
+export ZVARDIR=$VARDIR/zsh
+
+export BINDIR_REL=.bin
+export BINDIR=$HOME/$BINDIR_REL
+
+export TMPDIR_REL=.tmp
+export TMPDIR=$HOME/$TMPDIR_REL
# vim:ft=zsh
# Source repository: http://git.madduck.net/v/etc/zsh.git
#
-zrecompile $ZDOTDIR/** $ZVAR/** | while read pre file post; do
+zrecompile $ZDOTDIR/** $ZVARDIR/** | while read pre file post; do
case "$post" in
succeeded) rm -f "${file%:}".old;;
*) :;;
# initialise the completion system
autoload -U compinit
-compinit -d $VAR/zsh/comp-$HOST
+compinit -d $ZVARDIR/comp-$HOST
# cache results
zstyle ':completion:*' use-cache on
-zstyle ':completion:*' cache-path $ZVAR/compcache
+zstyle ':completion:*' cache-path $ZVARDIR/compcache
#zstyle ':completion:*' completer _list _expand _complete _ignored _match _correct _approximate _prefix
zstyle ':completion:*' completer _complete _ignored _match _approximate
# Source repository: http://git.madduck.net/v/etc/zsh.git
#
-HISTFILE=$ZVAR/history
+HISTFILE=$ZVARDIR/history
HISTSIZE=10000
SAVEHIST=$HISTSIZE
LISTMAX=1000