about summary refs log tree commit diff
path: root/Completion/Unix/Command/_ssh
diff options
context:
space:
mode:
authorBart Schaefer <barts@users.sourceforge.net>2009-04-30 18:02:08 +0000
committerBart Schaefer <barts@users.sourceforge.net>2009-04-30 18:02:08 +0000
commit7125514c462ac366ca0c6ed0d2f15b4d4ad4a79a (patch)
treed79b0d6d06d031f7d967a109a9bf7f0c8384d7a7 /Completion/Unix/Command/_ssh
parentd853f4cd120630c67eb653b7451441177345d201 (diff)
downloadzsh-7125514c462ac366ca0c6ed0d2f15b4d4ad4a79a.tar.gz
zsh-7125514c462ac366ca0c6ed0d2f15b4d4ad4a79a.tar.xz
zsh-7125514c462ac366ca0c6ed0d2f15b4d4ad4a79a.zip
users/14076 + workers/26906: Completion/Unix/Command/_ssh: fix autoremoval
of some suffixes.
Diffstat (limited to 'Completion/Unix/Command/_ssh')
-rw-r--r--Completion/Unix/Command/_ssh10
1 files changed, 5 insertions, 5 deletions
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index bc207bfd9..b7b407e2f 100644
--- a/Completion/Unix/Command/_ssh
+++ b/Completion/Unix/Command/_ssh
@@ -228,7 +228,7 @@ _ssh () {
         esac
       else
         _wanted values expl 'configure file option' \
-            compadd -M 'm:{a-z}={A-Z}' -S '=' - \
+            compadd -M 'm:{a-z}={A-Z}' -qS '=' - \
 	    	AddressFamily \
                 AFSTokenPassing BatchMode BindAddress \
 		ChallengeResponseAuthentication CheckHostIP \
@@ -294,12 +294,12 @@ _ssh () {
         _remote_files ${(kv)~opt_args[(I)-[FP1246]]/-P/-p} && ret=0
       elif compset -P '*@'; then
         suf=( -S '' )
-        compset -S ':*' || suf=( -S : )
+        compset -S ':*' || suf=( -r: -S: )
         _wanted hosts expl 'remote host name' _ssh_hosts $suf && ret=0
       else
         _alternative \
 	    'files:: _files' \
-	    'hosts:remote host name:_ssh_hosts -S:' \
+	    'hosts:remote host name:_ssh_hosts -r: -S:' \
 	    'users:user:_ssh_users -qS@' && ret=0
       fi
       ;;
@@ -307,10 +307,10 @@ _ssh () {
       if compset -P '*:'; then
         _remote_files && ret=0
       elif compset -P '*@'; then
-        _wanted hosts expl host _ssh_hosts -S: && ret=0
+        _wanted hosts expl host _ssh_hosts -r: -S: && ret=0
       else
         _alternative \
-	    'hosts:remote host name:_ssh_hosts -S:' \
+	    'hosts:remote host name:_ssh_hosts -r: -S:' \
 	    'users:user:_ssh_users -qS@' && ret=0
       fi
       ;;