Respect $ZSH_CACHE_DIR when creating fasd's cache
This commit is contained in:
parent
9c755511f0
commit
7f232f69fe
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user