about summary refs log tree commit diff
path: root/Completion/Unix/Command/_ssh
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-24 07:11:32 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2001-07-24 07:11:32 +0000
commita37d1d749d6f814b81fb51aac7c304e277fd63bd (patch)
treedc9a01f066168322080a9fce98a5114106d838c9 /Completion/Unix/Command/_ssh
parent32f7b3206172ebc2ca59d609062f585502ac8619 (diff)
downloadzsh-a37d1d749d6f814b81fb51aac7c304e277fd63bd.tar.gz
zsh-a37d1d749d6f814b81fb51aac7c304e277fd63bd.tar.xz
zsh-a37d1d749d6f814b81fb51aac7c304e277fd63bd.zip
improve user/host completion before a @ (15468)
Diffstat (limited to 'Completion/Unix/Command/_ssh')
-rw-r--r--Completion/Unix/Command/_ssh2
1 files changed, 2 insertions, 0 deletions
diff --git a/Completion/Unix/Command/_ssh b/Completion/Unix/Command/_ssh
index 8b3c8f0c4..6936173f4 100644
--- a/Completion/Unix/Command/_ssh
+++ b/Completion/Unix/Command/_ssh
@@ -143,6 +143,8 @@ _ssh () {
       userhost)
         if compset -P '*@'; then
 	  _wanted hosts expl 'remote host name' _ssh_hosts && ret=0
+        elif compset -S '@*'; then
+          _wanted users expl 'login name' _ssh_users -S '' && ret=0
         else
           if (( $+opt_args[-l] )); then
 	    tmp=()