-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# bash completion for strace-analyzer | ||
|
||
_strace-analyzer() | ||
{ | ||
local cur prev | ||
_init_completion || return | ||
|
||
case $prev in | ||
summary|read|write|io) | ||
_expand || return 0 | ||
compopt -o filenames | ||
COMPREPLY=( $( compgen -fd -- "$cur" ) ) | ||
return 0 | ||
;; | ||
esac | ||
|
||
case $cur in | ||
--*) | ||
COMPREPLY=( $( compgen -W '--help --version' -- $cur ) ) | ||
;; | ||
-*) | ||
COMPREPLY=( $( compgen -W '-? -h -help -version --help --version' -- $cur ) ) | ||
;; | ||
*) | ||
COMPREPLY=( $( compgen -W 'summary read write io' -- $cur ) ) | ||
;; | ||
esac | ||
|
||
return 0 | ||
} && | ||
complete -F _strace-analyzer strace-analyzer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters