diff options
author | dana <dana@dana.is> | 2018-07-20 11:15:32 -0500 |
---|---|---|
committer | dana <dana@dana.is> | 2018-07-20 11:15:32 -0500 |
commit | 627c91357c29e6fbe8b32d1b5f17f02d555d8360 (patch) | |
tree | 5fa16fdcf0ffbedb9059a9851f10728c4a8adcfd | |
parent | e558f231310c55896d1fac3ad207c3a7ed3a1cf8 (diff) | |
download | zsh-627c91357c29e6fbe8b32d1b5f17f02d555d8360.tar.gz zsh-627c91357c29e6fbe8b32d1b5f17f02d555d8360.tar.xz zsh-627c91357c29e6fbe8b32d1b5f17f02d555d8360.zip |
43196: Add completion for nginx
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | Completion/Unix/Command/_nginx | 20 |
2 files changed, 24 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index fced40fa9..4fc87616b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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 diff --git a/Completion/Unix/Command/_nginx b/Completion/Unix/Command/_nginx new file mode 100644 index 000000000..7d785c822 --- /dev/null +++ b/Completion/Unix/Command/_nginx @@ -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]' |