diff options
| author | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-27 13:39:00 +0000 |
|---|---|---|
| committer | Tanaka Akira <akr@users.sourceforge.net> | 1999-09-27 13:39:00 +0000 |
| commit | 63324a98b14c0aca0ab2829019478143dea08c58 (patch) | |
| tree | d9c6ffa9c4de4b63d514c27800c27541e10e6195 /Completion/User/_user@host | |
| parent | Initial revision (diff) | |
| download | zsh-63324a98b14c0aca0ab2829019478143dea08c58.tar zsh-63324a98b14c0aca0ab2829019478143dea08c58.tar.gz zsh-63324a98b14c0aca0ab2829019478143dea08c58.tar.bz2 zsh-63324a98b14c0aca0ab2829019478143dea08c58.tar.lz zsh-63324a98b14c0aca0ab2829019478143dea08c58.tar.xz zsh-63324a98b14c0aca0ab2829019478143dea08c58.tar.zst zsh-63324a98b14c0aca0ab2829019478143dea08c58.zip | |
Initial revision
Diffstat (limited to 'Completion/User/_user@host')
| -rw-r--r-- | Completion/User/_user@host | 15 |
1 files changed, 15 insertions, 0 deletions
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] ]] |
