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}"