1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-11-20 05:53:52 +01:00
zsh/Completion/User/_my_accounts

15 lines
249 B
Plaintext
Raw Normal View History

1999-09-26 16:26:08 +02:00
#autoload
local expl nm="$compstate[nmatches]"
local accounts_users_hosts
local varname="$words[1]_accounts"
if [[ ${(P)+varname} -eq 1 ]]; then
accounts_users_hosts=( ${(P)varname} )
else
accounts_users_hosts=( $my_accounts )
fi
_user@host