1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-04 22:51:42 +02:00
zsh/Completion/Unix/Command/_tac
2018-06-04 00:12:41 +02:00

19 lines
591 B
Text

#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'