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