about summary refs log tree commit diff
path: root/Completion/Unix/Command/_sudo
blob: b4c002168b31b8d94b21e826919dbe7add5f47ed (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#compdef sudo

local curcontext="$curcontext" environ e
zstyle -a "$curcontext" environ environ

for e in "${environ[@]}"
do local -x "$e"
done

_arguments \
       '-V[show version]' \
       '-l[list allowed commands]' \
       '-L[list options from Default section]' \
       '-h[show help]' \
       '-v[validate user timestamp]' \
       '-k[invalidate user timestamp]' \
       '-K[remove user timestamp]' \
       '-b[run command in background]' \
       '-r[Kerberos realm]:Kerberos realm:' \
       '-p[password prompt]:password prompt:' \
       '-u[user name]:user name:_users' \
       '-s[run SHELL]' \
       '-H[set HOME environment variable]' \
       '-S[read password from stdin]' \
       '(-):command name: _command_names -e'  \
       '*::arguments: _normal'