From 090dee6d074ff4d3ec28a8772baebd0406322ec1 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Mon, 27 Sep 1999 13:39:00 +0000 Subject: zsh-workers/8065 --- Completion/User/_user@host | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 Completion/User/_user@host (limited to 'Completion/User/_user@host') diff --git a/Completion/User/_user@host b/Completion/User/_user@host new file mode 100644 index 000000000..6006ef63b --- /dev/null +++ b/Completion/User/_user@host @@ -0,0 +1,15 @@ +#autoload + +local expl nm="$compstate[nmatches]" + +if [[ -prefix 1 *@ ]]; then + local user=${PREFIX/@} + compset -P 1 '*@' + _description expl "hostnames for $user" + _combination accounts_users_hosts users="$user" hosts "$expl[@]" "$@" +else + _description expl "usernames" + _combination accounts_users_hosts users -S@ -q "$expl[@]" "$@" +fi + +[[ nm -ne compstate[nmatches] ]] -- cgit v1.2.3-70-g09d2