diff options
Diffstat (limited to 'Completion/User/_user_at_host')
-rw-r--r-- | Completion/User/_user_at_host | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/Completion/User/_user_at_host b/Completion/User/_user_at_host index c33a024d9..1f93daacc 100644 --- a/Completion/User/_user_at_host +++ b/Completion/User/_user_at_host @@ -1,17 +1,13 @@ #autoload if [[ -prefix 1 *@ ]]; then - - _tags any:user-at hosts || return 1 - local user=${PREFIX/@} compset -P 1 '*@' - _description expl "hostnames for $user" - _combination accounts_users_hosts users="$user" hosts "$expl[@]" "$@" -else - _tags any users || return 1 - _description expl "usernames" - _combination accounts_users_hosts users -S@ -q "$expl[@]" "$@" + _wanted -C user-at hosts expl "hostnames for $user" && + _combination accounts_users_hosts users="$user" hosts "$expl[@]" "$@" +else + _wanted users expl "usernames" && + _combination accounts_users_hosts users -S@ -q "$expl[@]" "$@" fi |