From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27426 invoked from network); 8 Oct 2021 16:12:14 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Oct 2021 16:12:14 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1633709534; b=SbHWLQGj5Fjff0xv3DY4cZ3WKjD1LICA2sJpo5k4NRUKqkttv+TNWhkCG5nx6rjm5PwU6amlnd b6cYC1L4eLz5Ts7pnbovQcmZHQDTl8GMWpgh1lpFu3+z610kC5dA/un503wzigmkJTjQPupGxC s2B3HRCrJuUVFK0+5+uQ6CFoX9lKYF9Dtndztyh/eibJgkVNy2sFMRDtkysDeMoM7Dh00OYEDJ /UMsY0O921vCUvEEkNecZz5M9YSB5IQ7Fly4bKcAH0LkoVOJPMAIg2SHbT/GjAGag1xj6/YbLX DIxskzbq1mw4GJ7X3al2l0oTBVu2yt+/Ijtyw6lRUFr6pA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (snd01008-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.24; dmarc=none header.from=kba.biglobe.ne.jp; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1633709534; bh=fMYWwLrL/BiC4rUxS/iDcW3+lJWB+IMjmEJ5UIiRot4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:Date:Message-ID:Subject:MIME-Version: Content-Transfer-Encoding:Content-Type:From:DKIM-Signature; b=ZXZvBn4nGz/vS0bZRFejW7ZIDMc5XcyMdkQSKeqEaLcsnNYQcndt3bXSHgV1uklIZxOtyvn1u8 icr5T1MkUlrUY7HwUSVLWExyczF6setE1+/3hSL2SLqJJirmZioXs3Hp5vKxKbnNUhOin19zx2 yZeb9Nky+upokWpBt3tzHz8u160dqbLm7VLt2b2bz/Pkg/wdeUcoWQJbP3/Cgf9ZETQRpflrnS NMuP+1mj3xVcrnRE9SeVhRj1haLq1FQixbYqaxoCYEbJMbVR8U2Ork73nabfmqCy8xJ7TjNfrl 76BvZTj6naxBipe7G/bdyhd+hNCIgcAez9owyp3S6qogKw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:To:Date:Message-Id:Subject: Mime-Version:Content-Transfer-Encoding:Content-Type:From:Reply-To:Cc: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References; bh=UgUTafjWUWa7c4oKg6dnUS6x2mYxsM1QmltsMzw85i8=; b=VcAi2lT+oUVYRl5c5Hzm+NNnQQ B7BFGFzP/HadFHRPu9Rt+LnqwtpLFeVjq/4hzyR2USi8a0Ugw9PqE+w1275JjjHKHFUF5QesuXTqp F1FxyqPkcGNAY/evh/gAIaNxT1M7N7fRdtTuJqRRud6bTTdkGXTS1d2/FtNVvbHjnvd/NdOcYuBBg PsBjwovKBCsbCbdy+ZqJMp+3+7mT8G5UpUvjD0QvNygsDFP2i1i2qnF3FxvwZnDQWEtAelnDR037i 0I0gpTcPQui5ga3TM0DS4u43KgVNXaGJUaCq0kxDIIVC4STnF16Hw0/AobT7RUEgwntBlxY6ikWoR IKgKXrVA==; Received: from authenticated user by zero.zsh.org with local id 1mYsTk-0004vI-FY; Fri, 08 Oct 2021 16:12:12 +0000 Authentication-Results: zsh.org; iprev=pass (snd01008-bg.im.kddi.ne.jp) smtp.remote-ip=27.86.113.24; dmarc=none header.from=kba.biglobe.ne.jp; arc=none Received: from snd01008-bg.im.kddi.ne.jp ([27.86.113.24]:26273 helo=dfmta1002.biglobe.ne.jp) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mYsT6-0004bh-A2; Fri, 08 Oct 2021 16:11:34 +0000 Received: from mail.biglobe.ne.jp by omta1002.biglobe.ne.jp with ESMTP id <20211008161126033.TJZA.50468.mail.biglobe.ne.jp@biglobe.ne.jp> for ; Sat, 9 Oct 2021 01:11:26 +0900 From: "Jun. T" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Subject: [PATCH] _basenc: a new completion for basenc Message-Id: <11BE3704-B0A6-439C-94A0-FCF387AA3EAB@kba.biglobe.ne.jp> Date: Sat, 9 Oct 2021 01:11:24 +0900 To: zsh-workers@zsh.org X-Mailer: Apple Mail (2.3445.104.21) X-Biglobe-Sender: takimoto-j@kba.biglobe.ne.jp X-Seq: 49464 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: A simple new completion for 'basenc' command (new in GNU coreutils = 8.31). diff --git a/Completion/Linux/Command/_basenc = b/Completion/Linux/Command/_basenc new file mode 100644 index 000000000..515621aaa --- /dev/null +++ b/Completion/Linux/Command/_basenc @@ -0,0 +1,30 @@ +#compdef basenc +# based on GNU coreutils 8.32 + +local specs=3D( + + '(type)' + "(info)--base64[same as 'base64' program (RFC4648 section 4)]" + "(info)--base64url[file- and url-safe base64 (RFC4648 section 5)]" + "(info)--base32[same as 'base32' program (RFC4648 section 6)]" + "(info)--base32hex[extended hex alphabet base32 (RFC4648 section 7)]" + "(info)--base16[hex encoding (RFC4648 section 8)]" + "(info)--base2msbf[bit string with most significant bit (msb) first]" + "(info)--base2lsbf[bit string with least significant bit (lsb) = first]" + "(info)--z85[ascii85-like encoding (ZeroMQ spec-32/Z85)]" + + + enc + '(info dec -w --wrap)'{-w+,--wrap=3D}"[wrap encoded lines at = specified column]:number of characters (0=3Ddisable wrapping) [76]: " + + + dec + '(info enc -d --decode)'{-d,--decode}"[decode data]" + '(info enc -i --ignore-garbage)'{-i,--ignore-garbage}"[when decoding, = ignore non-alphabet characters]" + + + info + "(: -)--help[display help information and exit]" + "(: -)--version[output version information and exit]" + + + input + '(info)1:input file:_files' +) + +_arguments -s -S : $specs