Skip to content

Commit

Permalink
Merge pull request ohmyzsh#3947 from mkwmms/patch-1
Browse files Browse the repository at this point in the history
Respect $ZSH_CACHE_DIR when creating fasd's cache
  • Loading branch information
robbyrussell committed Jun 15, 2015
2 parents 0a8ca6a + 7f232f6 commit 31b351c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/fasd/fasd.plugin.zsh
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 31b351c

Please sign in to comment.