summary refs log tree commit diff stats
path: root/hooks/post-up
diff options
context:
space:
mode:
authorAlan Pearce2014-04-13 12:00:37 +0100
committerAlan Pearce2014-04-13 12:00:37 +0100
commit44cfeceab6b1dde2d1e2887131a747e7ae6e30a2 (patch)
tree293fd24288f18d7bd7f9fea61307764a7b532b50 /hooks/post-up
parentad529fd05f192d37299a5e8d009baa5d16da30bb (diff)
downloadnixfiles-44cfeceab6b1dde2d1e2887131a747e7ae6e30a2.tar.lz
nixfiles-44cfeceab6b1dde2d1e2887131a747e7ae6e30a2.tar.zst
nixfiles-44cfeceab6b1dde2d1e2887131a747e7ae6e30a2.zip
zsh: Create compdump file before compiling it
Diffstat (limited to 'hooks/post-up')
-rwxr-xr-xhooks/post-up/zsh2
1 files changed, 2 insertions, 0 deletions
diff --git a/hooks/post-up/zsh b/hooks/post-up/zsh
index 2d94d49a..e3c733ad 100755
--- a/hooks/post-up/zsh
+++ b/hooks/post-up/zsh
@@ -32,6 +32,8 @@ if [[ $OSTYPE == freebsd* ]]; then
 	zfiles+=$ZDOTDIR/freebsd.zsh
 fi
 
+autoload -Uz compinit
+compinit -u -d .cache/zsh/compdump
 zrecompile -p -R $ZDOTDIR/.zshrc.zwc $zfiles -- \
 	-M .cache/zsh/compdump