fish-shell/share/completions/cat.fish
Johannes Altmanninger 9c327b19a6 Fix extra or missing newlines at end of file in our fish scripts
New fish_indent does that too, so this will make any future reformatting
diffs smaller.

Done using either of:

	perl -pi -e 'undef $/; s/\n*$/\n/' share/**.fish
	kak -n -f '<a-/>\n*<ret>d' share/**.fish
2020-08-09 23:53:46 +02:00

21 lines
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