about summary refs log tree commit diff
path: root/Completion/User/_other_accounts
blob: f5165dc6f9878a060e38570e8f52168de11fbcff (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#compdef talk ntalk ytalk finger

local accounts_users_hosts

local varname="$words[1]_accounts"

if [[ ${(P)+varname} -eq 1 ]]; then
  accounts_users_hosts=( ${(P)varname} )
else
  accounts_users_hosts=( $other_accounts )
fi

_user@host "$@"