about summary refs log tree commit diff
path: root/Completion/User/_my_accounts
blob: 34d6269d40e86804b2a8dc93705099aabc2ac10c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#autoload

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_at_host "$@"