]> arthur.barton.de Git - ax-zsh.git/commitdiff
Add plugin "function path" to search path, when existent
authorAlexander Barton <alex@barton.de>
Tue, 13 Oct 2015 15:16:22 +0000 (17:16 +0200)
committerAlexander Barton <alex@barton.de>
Tue, 13 Oct 2015 15:16:22 +0000 (17:16 +0200)
ax.zsh

diff --git a/ax.zsh b/ax.zsh
index 0e571b9396367f51b042e9b6982f41f9653022dc..ee376eac5e45cea319e9678ad9bf3b924baeba1d 100644 (file)
--- a/ax.zsh
+++ b/ax.zsh
@@ -39,6 +39,11 @@ function axzsh_load_plugin {
                fi
        fi
 
+       if [[ "$type" == "zprofile" && -d "$dname/functions" ]]; then
+               # Add plugin function path when folder exists
+               axzsh_fpath+=("$dname/functions")
+       fi
+
        if [[ -r "$fname" ]]; then
                [[ -f "$HOME/.axzsh.debug" ]] \
                        && echo "   - $plugin ($type) ..."