]> arthur.barton.de Git - ax-zsh.git/commitdiff
ax.zsh: Add function paths to axzsh_fpath[] in cache files, too!
authorAlexander Barton <alex@barton.de>
Mon, 10 Apr 2017 11:18:32 +0000 (13:18 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 10 Apr 2017 11:18:32 +0000 (13:18 +0200)
ax.zsh

diff --git a/ax.zsh b/ax.zsh
index 01fd76f1b0e7d4ce4fc8271573b2c240dadab39b..42c2792a6ae9a60a9ff606bff8bc1504a8945355 100644 (file)
--- 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