shell-completion: zsh: Add "=" to the end of some command options
authorTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Sat, 16 Aug 2014 11:48:19 +0000 (14:48 +0300)
committerTanu Kaskinen <tanu.kaskinen@linux.intel.com>
Sun, 17 Aug 2014 06:30:16 +0000 (09:30 +0300)
Without the equals sign, only the "--server foo" form is recognized,
so the "--server=foo" form doesn't get completion support.

shell-completion/zsh/_pulseaudio

index 77abe2be34509573f71557dceba9b85ba9fbb9e0..1c786dc1064fc06bd9e76d191c8d0a74f021adf2 100644 (file)
@@ -278,8 +278,8 @@ _pactl_completion() {
     _arguments -C -S -A '-*' \
         {-h,--help}'[display help and exit]' \
         '--version[show version and exit]' \
-        {-s,--server}'[name of server to connect to]:host:_hosts' \
-        {-n,--client-name}'[client name to use]:name' \
+        {-s,--server=}'[name of server to connect to]:host:_hosts' \
+        {-n,--client-name=}'[client name to use]:name' \
         '::pactl command:_pactl_command'
 
     case $words[$((CURRENT - 1))] in
@@ -406,7 +406,7 @@ _pasuspender_completion() {
     _arguments -S -A "-*" -C \
         {-h,--help}'[display help and exit]' \
         '--version[show version and exit]' \
-        {-s,--server}'[name of server to connect to]:host:_hosts' \
+        {-s,--server=}'[name of server to connect to]:host:_hosts' \
 }
 
 _padsp_completion() {