]> git.ipfire.org Git - thirdparty/util-linux.git/blob - bash-completion/unshare
dmesg: add --follow-new
[thirdparty/util-linux.git] / bash-completion / unshare
1 _unshare_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 '--propagation')
9 COMPREPLY=( $(compgen -W "slave shared private unchanged" -- $cur) )
10 return 0
11 ;;
12 '-s'|'--setgroups')
13 COMPREPLY=( $(compgen -W "allow deny" -- $cur) )
14 return 0
15 ;;
16 '-h'|'--help'|'-V'|'--version')
17 return 0
18 ;;
19 esac
20 case $cur in
21 -*)
22 OPTS="--mount
23 --uts
24 --ipc
25 --net
26 --pid
27 --user
28 --cgroup
29 --time
30 --fork
31 --kill-child
32 --keep-caps
33 --mount-proc
34 --map-current-user
35 --map-root-user
36 --propagation
37 --setgroups
38 --help
39 --version
40 --root
41 --wd
42 --monotonic
43 --boottime
44 --setuid
45 --setgid"
46 COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
47 return 0
48 ;;
49 esac
50 compopt -o bashdefault
51 COMPREPLY=( $(compgen -c -- $cur) )
52 return 0
53 }
54 complete -F _unshare_module unshare