From 8884f6d5f41aec30ae45c35590eedfd0d6a41858 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 25 Mar 2013 21:37:36 +0000 Subject: bash-completion: term-utils Signed-off-by: Sami Kerola --- shell-completion/scriptreplay | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 shell-completion/scriptreplay (limited to 'shell-completion/scriptreplay') 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 -- cgit v1.2.3-55-g7522