mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Add strace completions (basic)
This commit is contained in:
parent
cebfaa7786
commit
6052758c28
1 changed files with 24 additions and 0 deletions
24
share/completions/strace.fish
Normal file
24
share/completions/strace.fish
Normal file
|
@ -0,0 +1,24 @@
|
|||
# Startup
|
||||
complete -c strace -s p -l attach -xa '(__fish_complete_pids)'
|
||||
complete -c strace -s u -l user -xa '(__fish_complete_users)'
|
||||
|
||||
# Tracing
|
||||
complete -c strace -s b -l detach-on -d 'Detach when the specified syscall is reached'
|
||||
|
||||
# General/Filtering/Tampering
|
||||
complete -c strace -s e -d 'Set expression which modifies which events to trace'
|
||||
|
||||
# Output format
|
||||
complete -c strace -s a -l columns -d 'Align output in columns'
|
||||
complete -c strace -s x -d 'Print all non-ASCII strings in hex format'
|
||||
complete -c strace -s xx -d 'Print all strings in hex format'
|
||||
|
||||
# Statistics
|
||||
complete -c strace -s c -l summary-only -d 'Suppress output and report summary on exit'
|
||||
complete -c strace -s C -l summary -d 'Display output and report summary on exit'
|
||||
complete -c strace -s S -l summary-sort-by -xa 'time time_total total_time calls count errors error name syscall syscall_name nothing none' -d 'Sort summary by the specified criterion'
|
||||
|
||||
# Miscellaneous
|
||||
complete -c strace -s d -l debug -d 'Debug output'
|
||||
complete -c strace -s h -l help -d 'Print help and exit'
|
||||
complete -c strace -s V -l version -d 'Print version and exit'
|
Loading…
Reference in a new issue