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:
parent
32f7b32061
commit
a37d1d749d
2 changed files with 7 additions and 0 deletions
|
@ -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=()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue