mirror of
https://git.code.sf.net/p/zsh/code
synced 2026-01-27 19:44:08 +00:00
16 lines
551 B
Plaintext
16 lines
551 B
Plaintext
#compdef tac gtac
|
|
|
|
# NetBSD (at least) has its own bare-bones version of this tool
|
|
_pick_variant gnu='(Free Soft|uutils)' unix --version || {
|
|
_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'
|