From: Alexander Barton Date: Sun, 19 Jul 2015 14:05:37 +0000 (+0200) Subject: Search for plugins in "$ZSH_CUSTOM", too X-Git-Url: https://arthur.barton.de/gitweb/?p=ax-zsh.git;a=commitdiff_plain;h=7ede45eb69879249f28a325a8fc672b7ea5aeb39 Search for plugins in "$ZSH_CUSTOM", too That's the location used by OhMyZsh ... --- diff --git a/ax.zsh b/ax.zsh index f92d8a8..d061aea 100644 --- a/ax.zsh +++ b/ax.zsh @@ -13,11 +13,12 @@ function axzsh_load_plugin { plugin="$1" [[ -z "$2" ]] && type="zshrc" || type="$2" - for dname in \ - "$AXZSH_PLUGIN_D/$plugin" \ - "$AXZSH/plugins/$plugin" \ - "$AXZSH/core/$plugin" \ - ; do + for dname ( + "$AXZSH_PLUGIN_D/$plugin" + "$ZSH_CUSTOM/$plugin" + "$AXZSH/plugins/$plugin" + "$AXZSH/core/$plugin" + ); do [[ ! -d "$dname" ]] && continue fname="$dname/$plugin.$type"