From e2f91f42974029f7d6f08b78573c0ab5079fb484 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Wed, 25 Jun 2014 22:19:54 +0100 Subject: rcm: Fix zsh compilation error when missing fasd --- hooks/post-up/zsh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'hooks/post-up/zsh') 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 -- cgit 1.4.1