diff options
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 |