summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-04-12 18:18:00 +0100
committerAlan Pearce2014-04-12 18:18:00 +0100
commitabaa898a029505446c6f8cbf3a45d17f9e15a571 (patch)
tree216a8e38577126811bf3f5e8e1a752e6b6fe34ee
parent65f9082920ad3d3d92929d68a125986a8c70cd0b (diff)
downloadnixfiles-abaa898a029505446c6f8cbf3a45d17f9e15a571.tar.lz
nixfiles-abaa898a029505446c6f8cbf3a45d17f9e15a571.tar.zst
nixfiles-abaa898a029505446c6f8cbf3a45d17f9e15a571.zip
zsh: use .cache/zsh instead of .zsh/cache
-rwxr-xr-xhooks/post-up/zsh8
1 files changed, 4 insertions, 4 deletions
diff --git a/hooks/post-up/zsh b/hooks/post-up/zsh
index f964e2bd..78eb093b 100755
--- a/hooks/post-up/zsh
+++ b/hooks/post-up/zsh
@@ -1,12 +1,12 @@
 #!/usr/bin/env zsh
 ZDOTDIR="${XDG_CONFIG_HOME:~/.config}/zsh"
 
-if [[ ! -d ~/.zsh/cache ]]
+if [[ ! -d ~/.cache/zsh ]]
 then
-	mkdir -p ~/.zsh/cache
+	mkdir -p ~/.cache/zsh
 fi
 
-fasd_cache=~/.zsh/cache/fasd-init-zsh
+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"
 fi
@@ -27,7 +27,7 @@ if [[ $OSTYPE == freebsd* ]]; then
 fi
 
 zrecompile -p -R $ZDOTDIR/.zshrc.zwc $zfiles -- \
-	-M .zsh/cache/compdump
+	-M .cache/zsh/compdump
 
 for fp in $ZDOTDIR/functions/*(/); do
 	zrecompile -p $fp $fp/*