From: Alexander Barton Date: Mon, 10 Apr 2017 11:18:32 +0000 (+0200) Subject: ax.zsh: Add function paths to axzsh_fpath[] in cache files, too! X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=commitdiff_plain;h=0352db4ec2697b1f2016087b897b3447290f8ebe ax.zsh: Add function paths to axzsh_fpath[] in cache files, too! --- 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