mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-01 21:51:40 +02:00
43196: Add completion for nginx
This commit is contained in:
parent
e558f23131
commit
627c91357c
2 changed files with 24 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2018-07-20 dana <dana@dana.is>
|
||||
|
||||
* 43196: Completion/Unix/Command/_nginx: Add completion for nginx
|
||||
|
||||
2018-07-20 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
|
||||
|
||||
* 43192: Completion/Unix/Command/_pgrep: simplify the completions
|
||||
|
|
20
Completion/Unix/Command/_nginx
Normal file
20
Completion/Unix/Command/_nginx
Normal file
|
@ -0,0 +1,20 @@
|
|||
#compdef nginx
|
||||
|
||||
local -ah signals=(
|
||||
'quit\:shut down gracefully (SIGQUIT)'
|
||||
'reload\:reload configuration (SIGHUP)'
|
||||
'reopen\:re-open log files (SIGUSR1)'
|
||||
'stop\:shut down quickly (SIGTERM)'
|
||||
)
|
||||
|
||||
_arguments -s -S : \
|
||||
'(: * -)'{-\?,-h}'[display help information]' \
|
||||
'(: * -)-v[display version information]' \
|
||||
'(: * -)-V[display version information and configure options]' \
|
||||
'-c+[specify configuration file]:configuration file:_files' \
|
||||
'-g+[specify global configuration directives]:configuration directives' \
|
||||
'-p+[specify prefix path]:prefix path:_directories' \
|
||||
'(-s)-q[suppress non-error messages (with -t/-T)]' \
|
||||
"(-q -t -T)-s+[send specified signal to master process]:signal:((${(j< >)${(@q-)signals}}))" \
|
||||
'(-s -T)-t[test configuration]' \
|
||||
'(-s -t)-T[test and dump configuration]'
|
Loading…
Reference in a new issue