]> git.ipfire.org Git - thirdparty/util-linux.git/blame - bash-completion/scriptlive
Merge branch 'coverage-tweaks' of https://github.com/mrc0mmand/util-linux
[thirdparty/util-linux.git] / bash-completion / scriptlive
CommitLineData
0faa7eda
KZ
1_scriptlive_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'|'--command')
9 compopt -o bashdefault
10 COMPREPLY=( $(compgen -c -- $cur) )
11 return 0
12 ;;
0faa7eda
KZ
13 '-d'|'--divisor'|'-m'|'--maxdelay')
14 COMPREPLY=( $(compgen -W "digit" -- $cur) )
15 return 0
16 ;;
17 '-h'|'--help'|'-V'|'--version')
18 return 0
19 ;;
20 esac
21 case $cur in
22 -*)
23 OPTS="--timing
24 --log-in
25 --log-io
26 --log-timing
27 --command
28 --divisor
29 --maxdelay
30 --version
31 --help"
32 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
33 return 0
34 ;;
35 esac
36 local IFS=$'\n'
37 compopt -o filenames
38 COMPREPLY=( $(compgen -f -- $cur) )
39 return 0
40}
41complete -F _scriptlive_module scriptlive