fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Fabian HomborgReformat completion scriptsce245704d

master
679 B11 linesraw
1if head --version >/dev/null 2>/dev/null
2    complete -c head -s c -l bytes -d 'Print the first N bytes; Leading '-', truncate the last N bytes' -r
3    complete -c head -s n -l lines -d 'Print the first N lines; Leading '-', truncate the last N lines' -r
4    complete -c head -s q -l quiet -l silent -d 'Never print file names'
5    complete -c head -s v -l verbose -d 'Always print file names'
6    complete -f -c head -l version -d 'Display version'
7    complete -f -c head -l help -d 'Display help'
8else # OSX and similar - no longopts (and fewer shortopts)
9    complete -c head -s c -d 'Print the first N bytes' -r
10    complete -c head -s n -d 'Print the first N lines' -r
11end