[PATCH 6/6] shell-completion: zsh: Add "=" to the end of some command options

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Without the equals sign, only the "--server foo" form is recognized,
so the "--server=foo" form doesn't get completion support.
---
 shell-completion/pulseaudio-zsh-completion.zsh | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/shell-completion/pulseaudio-zsh-completion.zsh b/shell-completion/pulseaudio-zsh-completion.zsh
index 77abe2b..1c786dc 100644
--- a/shell-completion/pulseaudio-zsh-completion.zsh
+++ b/shell-completion/pulseaudio-zsh-completion.zsh
@@ -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() {
-- 
1.9.3



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux