1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2026-01-04 09:01:06 +01:00

zsh-workers/8065

This commit is contained in:
Tanaka Akira 1999-09-27 13:39:00 +00:00
parent b6643f5976
commit 090dee6d07
3 changed files with 17 additions and 2 deletions

View file

@ -11,4 +11,4 @@ else
accounts_users_hosts=( $my_accounts )
fi
_user@host
_user@host "$@"

View file

@ -11,4 +11,4 @@ else
accounts_users_hosts=( $other_accounts )
fi
_user@host
_user@host "$@"

View file

@ -0,0 +1,15 @@
#autoload
local expl nm="$compstate[nmatches]"
if [[ -prefix 1 *@ ]]; then
local user=${PREFIX/@}
compset -P 1 '*@'
_description expl "hostnames for $user"
_combination accounts_users_hosts users="$user" hosts "$expl[@]" "$@"
else
_description expl "usernames"
_combination accounts_users_hosts users -S@ -q "$expl[@]" "$@"
fi
[[ nm -ne compstate[nmatches] ]]