From 0352db4ec2697b1f2016087b897b3447290f8ebe Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 10 Apr 2017 13:18:32 +0200 Subject: [PATCH] ax.zsh: Add function paths to axzsh_fpath[] in cache files, too! --- ax.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ax.zsh b/ax.zsh index 01fd76f..42c2792 100644 --- a/ax.zsh +++ b/ax.zsh @@ -56,6 +56,10 @@ function axzsh_load_plugin { [[ -n "$AXZSH_DEBUG" ]] \ && echo " - $plugin ($type): functions ..." axzsh_fpath+=("$dname/functions") + + # Add function path to cache file. + [[ -n "$cache_file" ]] \ + && echo "axzsh_fpath+=('$dname/functions')" >>$cache_file fi if [[ -r "$fname" ]]; then -- 2.39.2