Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Completion: Add _shuf, _tac, _uptime
- X-seq: zsh-workers 42922
- From: dana <dana@xxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] Completion: Add _shuf, _tac, _uptime
- Date: Sat, 2 Jun 2018 23:58:47 -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:date:references :to:in-reply-to:message-id; bh=mkXtDVpn81QpI8x9tM+inh2YDr1Hpn+aGLlWna7J2Fs=; b=eqYhj3ftc1VDGZljXUwiV3iuUVNeMze3Tun4A055+ROHdzuxBlUJFEuCkDVxqa+Uzq u+ngWSuUFLivtIq3ikSeNsKs/8MNhT5zQdt5swxF5qtjxufSgpeQN/g9MgzCrEPl3IxL raYySAvFZdvLJr+rg8rmaXBsmX3K/OadEZtvqT+9G3aTdXrNfDLomlyC8BrY41IZRzne PW+M1a6g3RzfVjBO9qf4VhI/NOjj+8e39Q0mY0kFr9RafkTa0Le1r6/xIkRVZMcEGdLO T/6u1fPP6GUAK3Dtq2uQ/PGIUxBYiG834QpjypWLqtaDFQpHXUhxuZ8GAcsBYj9eNp8h e94g==
- In-reply-to: <873B8FFF-F1A3-4D2E-A465-8BD4042045BC@dana.is>
- 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
- References: <873B8FFF-F1A3-4D2E-A465-8BD4042045BC@dana.is>
On 2 Jun 2018, at 18:07, dana <dana@xxxxxxx> wrote:
>tac (from GNU Coreutils)
Martin alerted me to the fact that NetBSD has recently gained its own version of
tac. Sorry, i should have checked more thoroughly. Anyway, we might as well
support it properly if we're adding stuff — here's a new patch. (The other two
are still fine.)
dana
diff --git a/Completion/Unix/Command/_tac b/Completion/Unix/Command/_tac
new file mode 100644
index 000000000..7a15bffff
--- /dev/null
+++ b/Completion/Unix/Command/_tac
@@ -0,0 +1,19 @@
+#compdef tac gtac
+
+local variant
+
+_pick_variant -r variant gnu='Free Soft' unix --version
+
+# NetBSD (at least) has its own bare-bones version of this tool
+[[ $variant == gnu ]] || {
+ _default
+ return
+}
+
+_arguments -s -S : \
+ '(: -)--help[display help information]' \
+ '(: -)--version[display version information]' \
+ '(-b --before)'{-b,--before}'[attach separator before instead of after]' \
+ '(-r --regex)'{-r,--regex}'[treat separator as regular expression (with -s)]' \
+ '(-s --separator)'{-s+,--separator=}'[use specified separator instead of newline]:separator' \
+ '*: :_files'
Messages sorted by:
Reverse Date,
Date,
Thread,
Author