2019-05-05 10:53:09 +00:00
|
|
|
if stat --version 2>/dev/null >/dev/null # GNU
|
|
|
|
complete -c stat -s L -l dereference -d 'follow links'
|
|
|
|
complete -c stat -s f -l file-system -d 'display file system status instead of file status'
|
2024-05-16 15:04:07 +00:00
|
|
|
complete -c stat -s c -l format -x -d 'use the specified FORMAT, with implicit newline'
|
|
|
|
complete -c stat -l printf -x -d 'use specified FORMAT, with backslash escapes and no implicit trailing newline'
|
2019-05-05 10:53:09 +00:00
|
|
|
complete -c stat -s t -l terse -d 'print the information in terse form'
|
|
|
|
complete -c stat -l help -d 'display this help and exit'
|
|
|
|
complete -c stat -l version -d 'output version information and exit'
|
2015-11-28 00:35:26 +00:00
|
|
|
else # OS X
|
2019-05-05 10:53:09 +00:00
|
|
|
complete -c stat -s F -d "Display content type symbols similar to ls(1)"
|
|
|
|
complete -c stat -s f -d "Display information using specified FORMAT" -r
|
|
|
|
complete -c stat -s L -d "Use stat(2) instead of lsstat(2)"
|
|
|
|
complete -c stat -s l -d "Display output in ls -lT format"
|
|
|
|
complete -c stat -s n -d "Don't force a newline to appear at end of each piece of output"
|
2019-11-25 11:03:25 +00:00
|
|
|
complete -c stat -s q -d "Suppress failure messages"
|
2019-05-05 10:53:09 +00:00
|
|
|
complete -c stat -s r -d "Display raw information"
|
|
|
|
complete -c stat -s s -d "Display informationin ``shell output'' suitable for initialising variables"
|
|
|
|
complete -c stat -s t -d "Display timestamps using specified FORMAT" -r
|
|
|
|
complete -c stat -s x -d "Verbose information, similar to some Linux distributions"
|
2020-08-09 10:50:21 +00:00
|
|
|
end
|