summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2014-04-13 09:38:30 +0100
committerAlan Pearce2014-04-13 09:38:30 +0100
commit414852c9e8fb99bb5ae79401f0e746aacbb3c11c (patch)
treecd1cd1d19eb8a1e326b444a90e0af2c5cf322607
parentb4f919d6b8969113181955cacb3c2e7bf14af67d (diff)
downloadnixfiles-414852c9e8fb99bb5ae79401f0e746aacbb3c11c.tar.lz
nixfiles-414852c9e8fb99bb5ae79401f0e746aacbb3c11c.tar.zst
nixfiles-414852c9e8fb99bb5ae79401f0e746aacbb3c11c.zip
Update and migrate fasd data file location
-rwxr-xr-xhooks/post-up/zsh2
-rwxr-xr-xtag-zsh/config/zsh/zshrc2
2 files changed, 3 insertions, 1 deletions
diff --git a/hooks/post-up/zsh b/hooks/post-up/zsh
index 085240df..e69362b4 100755
--- a/hooks/post-up/zsh
+++ b/hooks/post-up/zsh
@@ -38,3 +38,5 @@ zrecompile -p -R $ZDOTDIR/.zshrc.zwc $zfiles -- \
 for fp in $ZDOTDIR/functions/*(/); do
 	zrecompile -p $fp $fp/*
 done
+
+[[ -f ~/.zsh/fasd-data ]] && mv ~/.zsh/fasd-data ~/.cache/zsh/fasd-data
diff --git a/tag-zsh/config/zsh/zshrc b/tag-zsh/config/zsh/zshrc
index 6535e0f2..eff40399 100755
--- a/tag-zsh/config/zsh/zshrc
+++ b/tag-zsh/config/zsh/zshrc
@@ -354,7 +354,7 @@ ec () {
 	fi
 }
 
-_FASD_DATA="$HOME/.zsh/fasd-data"
+_FASD_DATA="$HOME/.cache/zsh/fasd-data"
 source ~/.cache/zsh/fasd-init-zsh
 
 if [[ $OSTYPE == freebsd* ]]; then