]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/scriptreplay
rev: be careful with close()
[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
e4fc3d57 8 '-d'|'--divisor'|'-m'|'--maxdelay')
8884f6d5
SK
9 COMPREPLY=( $(compgen -W "digit" -- $cur) )
10 return 0
11 ;;
d4f9b8d7
VS
12 '-h'|'--help'|'-V'|'--version')
13 return 0
14 ;;
8884f6d5
SK
15 esac
16 case $cur in
17 -*)
0d5b9b8a
VS
18 OPTS="--timing
19 --typescript
20 --divisor
e4fc3d57 21 --maxdelay
0d5b9b8a
VS
22 --version
23 --help"
8884f6d5
SK
24 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
25 return 0
26 ;;
27 esac
ce3e6b15 28 local IFS=$'\n'
8884f6d5
SK
29 compopt -o filenames
30 COMPREPLY=( $(compgen -f -- $cur) )
31 return 0
32}
33complete -F _scriptreplay_module scriptreplay