summary refs log tree commit diff stats
path: root/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'hooks')
-rwxr-xr-xhooks/post-up/zsh9
1 files changed, 4 insertions, 5 deletions
diff --git a/hooks/post-up/zsh b/hooks/post-up/zsh
index dda5ec9..f472081 100755
--- a/hooks/post-up/zsh
+++ b/hooks/post-up/zsh
@@ -13,17 +13,16 @@ then
 	mkdir -p ~/.cache/zsh
 fi
 
+local -a zfiles
+zfiles=($ZDOTDIR/zshrc)
+
 fasd_cache=~/.cache/zsh/fasd-init-zsh
 if [[ -s $commands[fasd] && (! -s "$fasd_cache" || $commands[fasd] -nt "$fasd_cache") ]]; then
 	fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install >! "$fasd_cache"
+	zfiles=($fasd_cache $zfiles)
 fi
 
 autoload -U zrecompile
-local -a zfiles
-zfiles=(
-	$fasd_cache
-	$ZDOTDIR/zshrc
-)
 
 if [[ -f $ZDOTDIR/${HOST%%.*}.zsh ]]; then
 	zfiles+=$ZDOTDIR/${HOST%%.*}.zsh