mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-14 01:43:38 +08:00
330f1701d7
This mostly fixes some wrong indents or replaces some stray tab indents. I excluded alignment on purpose, because we have a whole bunch of code that goes like ```fish complete -c foo -n 'some-condition' -l someoption complete -c foo -n 'some-longer-condition' -l someotheroption ``` and changing it seems like a larger thing and would include more thrashing. See #3622.
21 lines
924 B
Fish
21 lines
924 B
Fish
if command -q wc && command wc --version >/dev/null 2>/dev/null
|
|
complete -c wc -s c -l bytes -d "Print byte count"
|
|
complete -c wc -s m -l chars -d "Print character count"
|
|
complete -c wc -s l -l lines -d "Print number of lines"
|
|
complete -c wc -s L -l max-line-length -d "Print length of longest line"
|
|
complete -c wc -s w -l words -d "Print number of words"
|
|
complete -c wc -l help -d "Display help and exit"
|
|
complete -c wc -l version -d "Display version and exit"
|
|
else
|
|
complete -c wc -s c -d "Print byte count"
|
|
complete -c wc -s m -d "Print character count"
|
|
complete -c wc -s l -d "Print number of lines"
|
|
complete -c wc -s w -d "Print number of words"
|
|
switch (uname -s)
|
|
case FreeBSD NetBSD
|
|
complete -c wc -s L -d "Print length of longest line"
|
|
case OpenBSD
|
|
complete -c wc -s h -d "Use B, KB, MB, GB, TB, PB, EB unit suffixes"
|
|
end
|
|
end
|