浏览代码

Respect $ZSH_CACHE_DIR when creating fasd's cache

william 9 年之前
父节点
当前提交
7f232f69fe
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/fasd/fasd.plugin.zsh

+ 1 - 1
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