From ff528c8b7ae2e528b07bfe29f39aa2bc381d758b Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Mon, 29 Mar 2021 19:43:40 +0200 Subject: [PATCH] axzshctl: Only auto-complete enabled plugins on "disable-plugin" subcommand --- core/50_axzsh/functions/_axzsh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/50_axzsh/functions/_axzsh b/core/50_axzsh/functions/_axzsh index ea32b58..7e02099 100644 --- a/core/50_axzsh/functions/_axzsh +++ b/core/50_axzsh/functions/_axzsh @@ -20,12 +20,16 @@ _axzshctl() { case "$state" in 'args') case "$words[2]" in - "enable-plugin"|"disable-plugin") + "enable-plugin") compadd "$@" -- \ "$AXZSH"/plugins/*(/:t) \ "$AXZSH"/custom_plugins/*(N/:t) \ "$AXZSH"/repos/*(/:t:s/#/\\/) ;; + "disable-plugin") + compadd "$@" -- \ + "$AXZSH"/active_plugins/*(:t:s/#/\\/) + ;; "set-theme") compadd "$@" -- "-" \ "$AXZSH"/themes/*.axzshtheme(:r:t) \ -- 2.39.2