all repos — nixfiles @ 606c29d286a3da41da310faaa008d1a0280decd7

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

zsh: Simplify fasd compilation

Alan Pearce
commit

606c29d286a3da41da310faaa008d1a0280decd7

parent

53861212825c8cf6096a30e1d047931286e85846

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

jump to
M hooks/post-up/zshhooks/post-up/zsh
@@ -35,10 +35,6 @@
zrecompile -p -R $ZDOTDIR/.zshrc.zwc $zfiles -- \ -M .cache/zsh/compdump -for fp in $ZDOTDIR/functions/*(/); do - zrecompile -p $fp $fp/* -done - if [[ -s $commands[fasd] ]]; then if [[ ! -d $ZDOTDIR/functions/fasd ]]; then mkdir $ZDOTDIR/functions/fasd
@@ -46,7 +42,10 @@ fi
if [[ ! -h $ZDOTDIR/functions/fasd/fasd ]]; then ln -s =fasd $ZDOTDIR/functions/fasd/fasd fi - zrecompile -p $ZDOTDIR/functions/fasd $ZDOTDIR/functions/fasd/fasd fi + +for fp in $ZDOTDIR/functions/*(/); do + zrecompile -p $fp $fp/* +done [[ -f ~/.zsh/fasd-data ]] && mv ~/.zsh/fasd-data ~/.cache/zsh/fasd-data