fork/fish-shell

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

Fabian Boehmcompletions: More shortening5dc07c9e7

master
1.4 KiB20 linesraw
1if stat --version 2>/dev/null >/dev/null # GNU
2    complete -c stat -s L -l dereference -d 'follow links'
3    complete -c stat -s f -l file-system -d 'display file system status instead of file status'
4    complete -c stat -s c -l format -x -d 'use the specified FORMAT, with implicit newline'
5    complete -c stat -l printf -x -d 'use specified FORMAT, with backslash escapes and no implicit trailing newline'
6    complete -c stat -s t -l terse -d 'print the information in terse form'
7    complete -c stat -l help -d 'display this help and exit'
8    complete -c stat -l version -d 'output version information and exit'
9else # OS X
10    complete -c stat -s F -d "Display content type symbols similar to ls(1)"
11    complete -c stat -s f -d "Display information using specified FORMAT" -r
12    complete -c stat -s L -d "Use stat(2) instead of lsstat(2)"
13    complete -c stat -s l -d "Display output in ls -lT format"
14    complete -c stat -s n -d "Don't force a newline to appear at end of each piece of output"
15    complete -c stat -s q -d "Suppress failure messages"
16    complete -c stat -s r -d "Display raw information"
17    complete -c stat -s s -d "Display informationin ``shell output'' suitable for initialising variables"
18    complete -c stat -s t -d "Display timestamps using specified FORMAT" -r
19    complete -c stat -s x -d "Verbose information, similar to some Linux distributions"
20end