fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
c5d6a5446
master
1if command -q wc&& command wc --version> /dev/null2> /dev/null 2complete -c wc -s c -l bytes -d"Print byte count" 3complete -c wc -s m -l chars -d"Print character count" 4complete -c wc -s l -l lines -d"Print number of lines" 5complete -c wc -s L -l max-line-length -d"Print length of longest line" 6complete -c wc -s w -l words -d"Print number of words" 7complete -c wc -l files0-from -d"Read input from NUL-terminated filenames in the given file" -r 8complete -c wc -l help -d"Display help and exit" 9complete -c wc -l version -d"Display version and exit" 10else 11complete -c wc -s c -d"Print byte count" 12complete -c wc -s m -d"Print character count" 13complete -c wc -s l -d"Print number of lines" 14complete -c wc -s w -d"Print number of words" 15switch ( uname -s) 16case FreeBSD NetBSD 17complete -c wc -s L -d"Print length of longest line" 18case OpenBSD 19complete -c wc -s h -d"Use B, KB, MB, GB, TB, PB, EB unit suffixes" 20end 21end