blob: 78e5a12aaa42c39ba53de7b01a618fbe6c6c6bca (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#autoload
if [[ -prefix 1 *@ ]]; then
local user=${PREFIX/@}
compset -P 1 '*@'
_wanted -C user-at hosts expl "host for $user" &&
_combination accounts_users_hosts users="$user" hosts "$expl[@]" "$@"
else
_wanted users expl "user" &&
_combination accounts_users_hosts users -S@ -q "$expl[@]" "$@"
fi
|