all repos — nixfiles @ e2f91f42974029f7d6f08b78573c0ab5079fb484

System and user configuration, managed by nix and home-manager

rcm: Fix zsh compilation error when missing fasd

Alan Pearce
commit

e2f91f42974029f7d6f08b78573c0ab5079fb484

parent

22db368a72cf34fc7a0a326afe2f38efd42ed171

1 file changed, 4 insertions(+), 5 deletions(-)

jump to
M hooks/post-up/zshhooks/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