mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-07 09:21:18 +02:00
13 lines
343 B
Text
13 lines
343 B
Text
#compdef last passwd groups
|
|
|
|
# If a parameter `users' exists and it is an array, we first try to
|
|
# complete only to its elements.
|
|
|
|
local expl users
|
|
|
|
_wanted users expl user || return 1
|
|
|
|
zstyle -a ":completion${curcontext}:users" users users &&
|
|
compadd "$expl[@]" "$@" - "$users[@]" && return 0
|
|
|
|
compadd "$@" "$expl[@]" - "${(@k)userdirs}"
|