zsh: Simplify fasd compilation
Alan Pearce alan@alanpearce.co.uk
Sun, 13 Apr 2014 09:54:37 +0100
1 files changed, 4 insertions(+), 5 deletions(-)
jump to
M hooks/post-up/zsh → hooks/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