1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-30 15:02:18 +01: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

@ -1,3 +1,8 @@
2001-07-24 Sven Wischnowsky <wischnow@zsh.org>
* 15468: Completion/Unix/Command/_ssh: improve user/host
completion before a @
2001-07-20 Peter Stephenson <pws@csr.com>
* 15432: Functions/Zle/bash-transpose-words, Doc/Zsh/contrib.yo:

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