Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] Completion: Add _nginx
- X-seq: zsh-workers 43196
- From: dana <dana@xxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: [PATCH] Completion: Add _nginx
- Date: Thu, 19 Jul 2018 21:46:55 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=from:content-transfer-encoding:mime-version:subject:message-id:date :to; bh=lYp1ZDf7nBiermSmIbHIhA/25NcvEYsR/TRPFPim54s=; b=S4oIiVxZUeStINcV3D+/GHRmYkW2VMu0A/+1htHx0q3K+vOOfvTYvldDJqg8StOB30 fKnEQFHXBlTwHRRaZabt+MGxXeRpN+hxfr1PcF9PSjtSc1tNRT3mX/XRFZs1ZkmXFg39 crbLsuZ6Kltjby4EiuDQtEWmHHe4GjpX2WHeEIq8Ki97obXF32lnv5JMRn6jtLsEmVif bM9ddsaNvmNV3hAkyOaPDmtn9MQR7pllJsjZItjCNVDVDxh7CToAAic+kDUCzj9n31Fv G9r1lFo4XoxQAhictgUTtmuNDY/k4DBnU+/dMDNGdFUSKvFQg2qNAckNLkZscDovA6NW 5O6Q==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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]'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author