From: Alexander Barton Date: Tue, 13 Oct 2015 15:16:22 +0000 (+0200) Subject: Add plugin "function path" to search path, when existent X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ax-zsh.git;a=commitdiff_plain;h=061d4628e32e5559da19b0d3b2513c236d9834e9 Add plugin "function path" to search path, when existent --- diff --git a/ax.zsh b/ax.zsh index 0e571b9..ee376ea 100644 --- 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) ..."