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

local expl users

_wanted users || return 1

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

_loop users expl user compadd "$@" - "${(@k)userdirs}"