summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobby Russell <robby@planetargon.com>2015-06-14 22:26:28 -0700
committerRobby Russell <robby@planetargon.com>2015-06-14 22:26:28 -0700
commit31b351ce4c35c472359d56d8958bfec95cb9dfda (patch)
treee5e49d077f4d86d54d6f8f3675cd95f45948e4a0
parent0a8ca6adff743d38c145611377a72874d4e35414 (diff)
parent7f232f69fe8140a919759ea3b0811a71247f11e1 (diff)
downloadzsh-31b351ce4c35c472359d56d8958bfec95cb9dfda.tar.gz
zsh-31b351ce4c35c472359d56d8958bfec95cb9dfda.tar.bz2
zsh-31b351ce4c35c472359d56d8958bfec95cb9dfda.zip
Merge pull request #3947 from mkwmms/patch-1
Respect $ZSH_CACHE_DIR when creating fasd's cache
-rw-r--r--plugins/fasd/fasd.plugin.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/fasd/fasd.plugin.zsh b/plugins/fasd/fasd.plugin.zsh
index 8ad43fc23..472ab2b0f 100644
--- a/plugins/fasd/fasd.plugin.zsh
+++ b/plugins/fasd/fasd.plugin.zsh
@@ -1,5 +1,5 @@
if [ $commands[fasd] ]; then # check if fasd is installed
- fasd_cache="$HOME/.fasd-init-cache"
+ fasd_cache="${ZSH_CACHE_DIR}/fasd-init-cache"
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
fasd --init auto >| "$fasd_cache"
fi