diff options
author | dana <dana@dana.is> | 2018-06-02 23:58:47 -0500 |
---|---|---|
committer | Oliver Kiddle <okiddle@yahoo.co.uk> | 2018-06-04 00:12:41 +0200 |
commit | 3585c28c36f98840de66e7ac8ccfe6f274162097 (patch) | |
tree | b8c45dff3a2b55acc92b2e7d1902b90a60dab958 /Completion/Unix/Command | |
parent | 47f34eff93bb0197865ad02302346298c6e9585d (diff) | |
download | zsh-3585c28c36f98840de66e7ac8ccfe6f274162097.tar.gz zsh-3585c28c36f98840de66e7ac8ccfe6f274162097.tar.xz zsh-3585c28c36f98840de66e7ac8ccfe6f274162097.zip |
42922: new tac completion
Diffstat (limited to 'Completion/Unix/Command')
-rw-r--r-- | Completion/Unix/Command/_tac | 19 |
1 files changed, 19 insertions, 0 deletions
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' |