From: dana <dana@dana.is>
To: Zsh hackers list <zsh-workers@zsh.org>
Subject: [PATCH] Completion: Add _nginx
Date: Thu, 19 Jul 2018 21:46:55 -0500 [thread overview]
Message-ID: <6A155426-FDC3-4972-B066-D1C4955D2CD0@dana.is> (raw)
Simple one: completion for nginx
dana
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]'
reply other threads:[~2018-07-20 2:47 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6A155426-FDC3-4972-B066-D1C4955D2CD0@dana.is \
--to=dana@dana.is \
--cc=zsh-workers@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).