]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/scriptreplay
Merge branch 'wipefs/improvements' of https://github.com/t-8ch/util-linux
[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 '-c'|'--cr-mode')
9 COMPREPLY=( $(compgen -W "auto never always" -- $cur) )
10 return 0
11 ;;
12 '-d'|'--divisor'|'-m'|'--maxdelay')
13 COMPREPLY=( $(compgen -W "digit" -- $cur) )
14 return 0
15 ;;
16 '-x'|'--stream')
17 COMPREPLY=( $(compgen -W "out in signal info" -- $cur) )
18 return 0
19 ;;
20 '-h'|'--help'|'-V'|'--version')
21 return 0
22 ;;
23 esac
24 case $cur in
25 -*)
26 OPTS="--timing
27 --log-in
28 --log-out
29 --log-io
30 --log-timing
31 --summary
32 --stream
33 --cr-mode
34 --typescript
35 --divisor
36 --maxdelay
37 --version
38 --help"
39 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
40 return 0
41 ;;
42 esac
43 local IFS=$'\n'
44 compopt -o filenames
45 COMPREPLY=( $(compgen -f -- $cur) )
46 return 0
47 }
48 complete -F _scriptreplay_module scriptreplay