]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/uuidd
setterm: disallow "default" for --ulcolor/--hbcolor
[thirdparty/util-linux.git] / bash-completion / uuidd
1 _uuidd_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 '-p'|'--pid'|'-s'|'--socket')
9 local IFS=$'\n'
10 compopt -o filenames
11 COMPREPLY=( $(compgen -f -- $cur) )
12 return 0
13 ;;
14 '-T'|'--timeout')
15 local IFS=$'\n'
16 compopt -o filenames
17 COMPREPLY=( $(compgen -W "timeout" -- $cur) )
18 return 0
19 ;;
20 '-n'|'--uuids')
21 local IFS=$'\n'
22 compopt -o filenames
23 COMPREPLY=( $(compgen -W "number" -- $cur) )
24 return 0
25 ;;
26 '-h'|'--help'|'-V'|'--version')
27 return 0
28 ;;
29 esac
30 case $cur in
31 -*)
32 OPTS="--pid --socket --timeout --kill --random --time --uuids --no-pid --no-fork --socket-activation --debug --quiet --version --help"
33 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
34 return 0
35 ;;
36 esac
37 return 0
38 }
39 complete -F _uuidd_module uuidd