Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
	autolearn_force=no version=3.4.1
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20130820;
        h=x-gm-message-state:reply-to:to:from:subject:organization:message-id
         :date:user-agent:mime-version:content-transfer-encoding;
        bh=s5Zpjqi2z0FtHszTl0YFUd1EDhsaR/7Rr2avME2i1Dk=;
        b=NUfj8dfHgRrpQ/E2OFq3eUG69tYD6xTDTXzmPeIhazIKZT9EX+cTceN1QBteSFfC8g
         ptoavvEz437CTR91WQv/bphrsmY21BqX6XvzfsxK6gmUK1ptAG2boIAnkqqjCn1z8GHG
         jouwuhUPe9sjD4inS+erFdnPPg9YASELb3D2G9wgY6mQyyETTWejO3kWC846GDx88tCY
         VCo5G3iuniUyeVkH3x9IOeG7f1GJKh61n0hSrBGuxagDdp2JMyhA61Pb5D1D/iMD0jJf
         9YkSCokPsM/ntEtHh9S6Zb9TTxguMATKriBxnsQQUwRJV1qIjmDIBGkM+aZW0Qd1w+6E
         i8gg==
X-Gm-Message-State: AOPr4FUpKjYWvKU69NRGFvWN+V0T+Q1msL8derOCl8S7AYBQ/KdFbztN0rsEjECPqV0m6cjX
X-Received: by 10.194.242.65 with SMTP id wo1mr23960275wjc.54.1462798492198;
        Mon, 09 May 2016 05:54:52 -0700 (PDT)
Reply-To: Marko Myllynen <myllynen@redhat.com>
To: zsh-workers@zsh.org
From: Marko Myllynen <myllynen@redhat.com>
Subject: [PATCH] zsh iconvconfig completion
Organization: Red Hat
Message-ID: <5730889A.9000908@redhat.com>
Date: Mon, 9 May 2016 15:54:50 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
 Thunderbird/38.7.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Seq: zsh-workers 38440

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

