]> arthur.barton.de Git - ax-zsh.git/blobdiff - core/50_axzsh/functions/_axzsh
Add support for remote OhMyZsh plugins
[ax-zsh.git] / core / 50_axzsh / functions / _axzsh
index 7e0209981fa93e1cf26ef4bf2a526ad26c812420..960a76b9d59333c88def4467608316f18a5b79a1 100644 (file)
@@ -25,6 +25,11 @@ _axzshctl() {
                                "$AXZSH"/plugins/*(/:t) \
                                "$AXZSH"/custom_plugins/*(N/:t) \
                                "$AXZSH"/repos/*(/:t:s/#/\\/)
+                       for r in "$AXZSH"/repos/@*(N/); do
+                               b=(echo $r(:t))
+                               compadd "$@" -- \
+                                       $(echo $r/plugins/*(N:t) | sed -E "s/(^| )/ $b\//g")
+                       done
                        ;;
                  "disable-plugin")
                        compadd "$@" -- \