diff options
author | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-15 12:01:46 +0000 |
---|---|---|
committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-11-15 12:01:46 +0000 |
commit | 35b2633ad941966f5fca07b625a594a5b68c0fdb (patch) | |
tree | b54740d014e594ba5d81931cdcdb3387bcf9dfca /Completion/User/_user_at_host | |
parent | bb98460a01ce1f6c1e71f7e401f782c81b71486b (diff) | |
download | zsh-35b2633ad941966f5fca07b625a594a5b68c0fdb.tar.gz zsh-35b2633ad941966f5fca07b625a594a5b68c0fdb.tar.xz zsh-35b2633ad941966f5fca07b625a594a5b68c0fdb.zip |
manual/8639
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 |