1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-19 05:24:23 +01:00
This commit is contained in:
Tanaka Akira 1999-09-29 23:15:10 +00:00
parent 35352973c9
commit 9fef2018ac

@ -1,15 +0,0 @@
#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] ]]