about summary refs log tree commit diff
path: root/Completion/User/_users
blob: da5539556acf5b13b9942cc58393966fb916c629 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#compdef last passwd groups

local expl users

_wanted users expl user || return 1

zstyle -a ":completion:${curcontext}:" users users &&
    compadd "$expl[@]" "$@" - "$users[@]" && return 0

compadd "$@" "$expl[@]" - "${(@k)userdirs}"