mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-19 11:31:26 +01:00
Initial revision
This commit is contained in:
parent
63324a98b1
commit
be33587b5c
1 changed files with 15 additions and 0 deletions
15
Completion/User/_user_at_host
Normal file
15
Completion/User/_user_at_host
Normal file
|
@ -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] ]]
|
Loading…
Reference in a new issue