* [PATCH] zsh iconvconfig completion
@ 2016-05-09 12:54 Marko Myllynen
0 siblings, 0 replies; only message in thread
From: Marko Myllynen @ 2016-05-09 12:54 UTC (permalink / raw)
To: zsh-workers
Hi,
Below is zsh completions for the iconvconfig(8) command which is part
of the GNU C library. The command itself is not that often used but it
complements the iconv(1) completions in tree already and locale(1) /
localedef(1) completions which I'm about to send next.
http://man7.org/linux/man-pages/man8/iconvconfig.8.html
Tested on RHEL 7.
---
Completion/Unix/Command/_iconvconfig | 13 +++++++++++++
1 file changed, 13 insertions(+)
create mode 100644 Completion/Unix/Command/_iconvconfig
diff --git a/Completion/Unix/Command/_iconvconfig b/Completion/Unix/Command/_iconvconfig
new file mode 100644
index 0000000..5afb10a
--- /dev/null
+++ b/Completion/Unix/Command/_iconvconfig
@@ -0,0 +1,13 @@
+#compdef iconvconfig
+
+local exargs="-? --help --usage -V --version"
+
+_arguments -S -s \
+ "($exargs)--nostdlib[do not search system directory]" \
+ "(-o --output= $exargs)"{-o+,--output=}'[specify output file]:output file:_files' \
+ "($exargs)--prefix=[specify system dir prefix]:prefix:_files" \
+ '(- *)'{-\?,--help}'[display help information]' \
+ '(- *)--usage[display a short usage message]' \
+ '(- *)'{-V,--version}'[print program version]' \
+ '*:directory:_files -/' \
+ && return 0
Thanks,
--
Marko Myllynen
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-09 12:54 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-09 12:54 [PATCH] zsh iconvconfig completion Marko Myllynen
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).