]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/scriptreplay
su: use lib/pty-session.c code for --pty
[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 --typescript
20 --divisor
21 --maxdelay
22 --version
23 --help"
24 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
25 return 0
26 ;;
27 esac
28 local IFS=$'\n'
29 compopt -o filenames
30 COMPREPLY=( $(compgen -f -- $cur) )
31 return 0
32 }
33 complete -F _scriptreplay_module scriptreplay