diff options
author | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-05-09 15:30:58 -0400 |
---|---|---|
committer | Steven Rostedt (VMware) <rostedt@goodmis.org> | 2017-05-09 16:01:34 -0400 |
commit | 6c7c6f77ab596165f7c2c119a738a89367687292 (patch) | |
tree | 171730cad72f735d1630fc4a9375736b15230403 | |
parent | 3ea6b2ddc05480ac0288f5a4b038d34d59b40c1a (diff) | |
download | trace-cmd-6c7c6f77ab596165f7c2c119a738a89367687292.tar.gz |
trace-cmd: Have trace-cmd start, profile and stream use record completion
The commands for trace-cmd start, profile and stream are the same as
trace-cmd record, so have them have the same completions as trace-cmd record.
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
-rw-r--r-- | trace-cmd.bash | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/trace-cmd.bash b/trace-cmd.bash index da5dc359..05f76392 100644 --- a/trace-cmd.bash +++ b/trace-cmd.bash @@ -101,6 +101,18 @@ _trace_cmd_complete() __trace_cmd_record_complete "${prev}" "${cur}" ${words[@]} return 0 ;; + stream) + __trace_cmd_record_complete "${prev}" "${cur}" ${words[@]} + return 0 + ;; + start) + __trace_cmd_record_complete "${prev}" "${cur}" ${words[@]} + return 0 + ;; + profile) + __trace_cmd_record_complete "${prev}" "${cur}" ${words[@]} + return 0 + ;; *) # By default, we list files COMPREPLY=( $(compgen -f -- "$cur") ) |