]> arthur.barton.de Git - ax-zsh.git/blobdiff - ax.zsh
Implement plugin loading from GitHub
[ax-zsh.git] / ax.zsh
diff --git a/ax.zsh b/ax.zsh
index 59e172d46197f64a770782a08777d1dbd3e02072..ea16c4e34e892a949f355ff592ccc246c0b1b267 100644 (file)
--- a/ax.zsh
+++ b/ax.zsh
@@ -13,6 +13,8 @@ function axzsh_load_plugin {
        [[ -z "$2" ]] && type="zshrc" || type="$2"
        fname="$dname/$plugin.$type"
 
+       [[ "$plugin" =~ "#" ]] && plugin=$(echo $plugin | cut -d'#' -f2-)
+
        if [[ ! -d "$dname" ]]; then
                # Plugin not found!
                if [[ -n "$AXZSH_DEBUG" ]]; then