diff options
author | Sami Kerola | 2013-03-25 22:37:36 +0100 |
---|---|---|
committer | Sami Kerola | 2013-04-01 18:41:55 +0200 |
commit | 8884f6d5f41aec30ae45c35590eedfd0d6a41858 (patch) | |
tree | 44d068dfa9089494da47133831bb56b2acca46d5 /shell-completion/scriptreplay | |
parent | bash-completion: sys-utils (diff) | |
download | kernel-qcow2-util-linux-8884f6d5f41aec30ae45c35590eedfd0d6a41858.tar.gz kernel-qcow2-util-linux-8884f6d5f41aec30ae45c35590eedfd0d6a41858.tar.xz kernel-qcow2-util-linux-8884f6d5f41aec30ae45c35590eedfd0d6a41858.zip |
bash-completion: term-utils
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'shell-completion/scriptreplay')
-rw-r--r-- | shell-completion/scriptreplay | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/shell-completion/scriptreplay b/shell-completion/scriptreplay new file mode 100644 index 000000000..78e5b23a7 --- /dev/null +++ b/shell-completion/scriptreplay @@ -0,0 +1,28 @@ +_scriptreplay_module() +{ + local cur prev OPTS + COMPREPLY=() + cur="${COMP_WORDS[COMP_CWORD]}" + prev="${COMP_WORDS[COMP_CWORD-1]}" + case $prev in + '-d'|'--divisor') + COMPREPLY=( $(compgen -W "digit" -- $cur) ) + return 0 + ;; + esac + case $cur in + -*) + OPTS="-t --timing + -s --typescript + -d --divisor + -V --version + -h --help" + COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) ) + return 0 + ;; + esac + compopt -o filenames + COMPREPLY=( $(compgen -f -- $cur) ) + return 0 +} +complete -F _scriptreplay_module scriptreplay |