1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-11-01 18:30:55 +01:00
zsh/Completion/User/_users
1999-09-26 14:24:12 +00:00

13 lines
268 B
Text

#compdef last
# If a parameter `users' exists and it is an array, we first try to
# complete only to its elements.
local expl
_description expl user
[[ "${(t)users}" = *array* ]] &&
compadd "$expl[@]" "$@" - "$users[@]" && return 0
compgen "$@" "$expl[@]" -u