diff options
Diffstat (limited to 'tools/perf/bash_completion')
| -rw-r--r-- | tools/perf/bash_completion | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/perf/bash_completion b/tools/perf/bash_completion index b0cdd12bd5e4..d2598be517fb 100644 --- a/tools/perf/bash_completion +++ b/tools/perf/bash_completion | |||
| @@ -54,9 +54,8 @@ _perf() | |||
| 54 | subcmd=${COMP_WORDS[1]} | 54 | subcmd=${COMP_WORDS[1]} |
| 55 | opts=$($cmd $subcmd --list-opts) | 55 | opts=$($cmd $subcmd --list-opts) |
| 56 | COMPREPLY=( $( compgen -W '$opts' -- "$cur" ) ) | 56 | COMPREPLY=( $( compgen -W '$opts' -- "$cur" ) ) |
| 57 | # Fall down to list regular files | ||
| 58 | else | ||
| 59 | _filedir | ||
| 60 | fi | 57 | fi |
| 61 | } && | 58 | } && |
| 62 | complete -F _perf perf | 59 | |
| 60 | complete -o bashdefault -o default -o nospace -F _perf perf 2>/dev/null \ | ||
| 61 | || complete -o default -o nospace -F _perf perf | ||
