summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_nginx
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2018-08-27 13:31:04 +0200
committerAxel Beckert <abe@deuxchevaux.org>2018-08-27 13:31:04 +0200
commit719a715614f2182a76b30ad27a327d70a86f34f1 (patch)
treea437eb29da8035bf7c2e30506c08fe6f15719871 /Completion/Unix/Command/_nginx
parent7da8d19c224860ae4d6aa3f077fca7f734f20d88 (diff)
parentef61918398517473b9b594690a3be375f607cebe (diff)
downloadzsh-719a715614f2182a76b30ad27a327d70a86f34f1.tar.gz
zsh-719a715614f2182a76b30ad27a327d70a86f34f1.zip
Merge tag 'zsh-5.5.1-test-2' into debian
Test release: 5.5.1-test-2.
Diffstat (limited to 'Completion/Unix/Command/_nginx')
-rw-r--r--Completion/Unix/Command/_nginx20
1 files changed, 20 insertions, 0 deletions
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]'