all repos — archive/dotfiles @ 34d2b95ffd8137abf714d5996efaa1ae1b550ca0

Superseded by nixfiles

zsh: Use system version of fasd

Alan Pearce
commit

34d2b95ffd8137abf714d5996efaa1ae1b550ca0

parent

abaa898a029505446c6f8cbf3a45d17f9e15a571

1 file changed, 2 insertions(+), 3 deletions(-)

changed files
M hooks/post-up/zshhooks/post-up/zsh
@@ -7,14 +7,13 @@ mkdir -p ~/.cache/zsh
fi fasd_cache=~/.cache/zsh/fasd-init-zsh -if [[ ! -s "$fasd_cache" || $ZDOTDIR/functions/fasd/fasd -nt "$fasd_cache" ]]; then - $ZDOTDIR/functions/fasd/fasd --init posix-alias zsh-hook zsh-ccomp zsh-ccomp-install zsh-wcomp zsh-wcomp-install >! "$fasd_cache" +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" fi autoload -U zrecompile local -a zfiles zfiles=( - $ZDOTDIR/functions/fasd/fasd $fasd_cache $ZDOTDIR/zshrc )