]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/scriptreplay
bash-completion: update for new script tools
[thirdparty/util-linux.git] / bash-completion / scriptreplay
1 _scriptreplay_module()
2 {
3 local cur prev OPTS
4 COMPREPLY=()
5 cur="${COMP_WORDS[COMP_CWORD]}"
6 prev="${COMP_WORDS[COMP_CWORD-1]}"
7 case $prev in
8 '-d'|'--divisor'|'-m'|'--maxdelay')
9 COMPREPLY=( $(compgen -W "digit" -- $cur) )
10 return 0
11 ;;
12 '-h'|'--help'|'-V'|'--version')
13 return 0
14 ;;
15 esac
16 case $cur in
17 -*)
18 OPTS="--timing
19 --log-in
20 --log-out
21 --log-io
22 --log-timing
23 --summary
24 --stream
25 --cr-mode
26 --typescript
27 --divisor
28 --maxdelay
29 --version
30 --help"
31 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
32 return 0
33 ;;
34 esac
35 local IFS=$'\n'
36 compopt -o filenames
37 COMPREPLY=( $(compgen -f -- $cur) )
38 return 0
39 }
40 complete -F _scriptreplay_module scriptreplay