From: Alexander Barton Date: Fri, 14 Apr 2017 12:43:52 +0000 (+0200) Subject: Try to load Oh My ZSH plugins with "zsh-" prefix stripped X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;ds=sidebyside;h=c2a7e3cea095d498557079743e34301a54c514c5;hp=311152becfbfc15db7d98c37435938eb5dfc4f09;p=ax-zsh.git Try to load Oh My ZSH plugins with "zsh-" prefix stripped --- diff --git a/ax.zsh b/ax.zsh index 42c2792..c5ffeab 100644 --- a/ax.zsh +++ b/ax.zsh @@ -41,6 +41,10 @@ function axzsh_load_plugin { # Oh My ZSH plugin type="plugin.zsh" fname="$dname/${plugin_short}.plugin.zsh" + elif [[ -r "$dname/${plugin_short##zsh-}.plugin.zsh" ]]; then + # Oh My ZSH plugin with "zsh-" prefix stripped + type="plugin.zsh" + fname="$dname/${plugin_short##zsh-}.plugin.zsh" elif [[ -r "$dname/init.zsh" ]]; then # Prezto module type="init.zsh"