mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 13:08:49 +00:00
Fix file completion for tail
This commit is contained in:
parent
3fc0faaebb
commit
7304d82416
1 changed files with 3 additions and 3 deletions
|
@ -1,6 +1,6 @@
|
|||
if tail --version > /dev/null ^ /dev/null
|
||||
complete -c tail -s c -l bytes -x -d 'output the last K bytes; alternatively, use -c +K to output bytes starting with the Kth of each file'
|
||||
complete -c tail -s f -l follow -xa 'name descriptor' -d 'output appended data as the file grows; -f -l follow, and --follow=descriptor are equivalent'
|
||||
complete -c tail -s f -l follow -a 'name descriptor' -d 'output appended data as the file grows; -f -l follow, and --follow=descriptor are equivalent'
|
||||
complete -c tail -s F -d 'same as --follow=name --retry'
|
||||
complete -c tail -s n -l lines -x -d 'output the last K lines, instead of the last 10; or use -n +K to output lines starting with the Kth'
|
||||
complete -c tail -l max-unchanged-stats -x -d 'with --follow=name, reopen a FILE which has not changed size after N iterations'
|
||||
|
@ -9,8 +9,8 @@ if tail --version > /dev/null ^ /dev/null
|
|||
complete -c tail -l retry -d 'keep trying to open a file even when it is or becomes inaccessible; useful when following by name, i.e., with --follow=name'
|
||||
complete -c tail -s s -l sleep-interval -x -d 'with -f, sleep for approximately N seconds (default 1.0) between iterations'
|
||||
complete -c tail -s v -l verbose -d 'always output headers giving file names'
|
||||
complete -c tail -l help -d 'display this help and exit'
|
||||
complete -c tail -l version -d 'output version information and exit'
|
||||
complete -c tail -x -l help -d 'display this help and exit'
|
||||
complete -c tail -x -l version -d 'output version information and exit'
|
||||
else # OSX and similar - no longopts (and fewer shortopts)
|
||||
complete -c tail -s b -x -d 'output last K 512 byte blocks'
|
||||
complete -c tail -s c -x -d 'output the last K bytes or only K bytes with -r'
|
||||
|
|
Loading…
Reference in a new issue