mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-15 01:17:45 +00:00
ce245704d7
These were excluded from style.fish
21 lines
No EOL
1.1 KiB
Fish
21 lines
No EOL
1.1 KiB
Fish
if cat --version 2>/dev/null >/dev/null # GNU
|
|
complete -c cat -s A -l show-all -d "Escape all unprintables"
|
|
complete -c cat -s b -l number-nonblank -d "Number non-blank lines"
|
|
complete -c cat -s e -d "Escape unprintables except \\t"
|
|
complete -c cat -s E -l show-ends -d "Display \$ at line end"
|
|
complete -c cat -s n -l number -d "Enumerate lines"
|
|
complete -c cat -s s -l squeeze-blank -d "Never >1 blank line"
|
|
complete -c cat -s t -d "Escape unprintables except \\n"
|
|
complete -c cat -s T -l show-tabs -d "Escape tab"
|
|
complete -c cat -s v -d "Escape unprintables except '\\n' and \\t"
|
|
complete -c cat -l help -d "Display help and exit"
|
|
complete -c cat -l version -d "Display version and exit"
|
|
else # OS X
|
|
complete -c cat -s b -d "Specify # of non-blank lines"
|
|
complete -c cat -s e -d "Show unprintables, end lines with \$"
|
|
complete -c cat -s n -d "Enumerate lines"
|
|
complete -c cat -s s -d "Squeeze away >1 blank lines"
|
|
complete -c cat -s t -d "Show unprintables; tab as '^I'"
|
|
complete -c cat -s u -d "Disable output buffering"
|
|
complete -c cat -s v -d "Escape non-printing chars"
|
|
end |