1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-23 16:40:24 +02:00

improve user/host completion before a @ (15468)

This commit is contained in:
Sven Wischnowsky 2001-07-24 07:11:32 +00:00
parent 32f7b32061
commit a37d1d749d
2 changed files with 7 additions and 0 deletions

View file

@ -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=()