summary refs log tree commit diff stats
path: root/hooks/post-up
diff options
context:
space:
mode:
authorAlan Pearce2014-04-13 09:54:37 +0100
committerAlan Pearce2014-04-13 09:54:37 +0100
commit606c29d286a3da41da310faaa008d1a0280decd7 (patch)
tree24967b2c1aaabc2a6e13a655386e5a9a38f5f7a3 /hooks/post-up
parent53861212825c8cf6096a30e1d047931286e85846 (diff)
downloaddotfiles-606c29d286a3da41da310faaa008d1a0280decd7.tar.lz
dotfiles-606c29d286a3da41da310faaa008d1a0280decd7.tar.zst
dotfiles-606c29d286a3da41da310faaa008d1a0280decd7.zip
zsh: Simplify fasd compilation
Diffstat (limited to 'hooks/post-up')
-rwxr-xr-xhooks/post-up/zsh9
1 files changed, 4 insertions, 5 deletions
diff --git a/hooks/post-up/zsh b/hooks/post-up/zsh
index 05a7237..1db24bf 100755
--- a/hooks/post-up/zsh
+++ b/hooks/post-up/zsh
@@ -35,10 +35,6 @@ fi
 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 @@ if [[ -s $commands[fasd] ]]; then
 	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