blob: 954c11483a5abaa119368685c021a26f262a452d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#!/bin/bash
#
# bash completion file for bubblewrap commands
#
_bwrap() {
local cur prev words cword
_init_completion || return
local boolean_options="
--help
--share-user
--unshare-ipc
--unshare-net
--unshare-pid
--unshare-uts
--version
"
local options_with_args="
$boolean_optons
--args
--bind
--bind-data
--chdir
--dev
--dev-bind
--dir
--exec-label
--file
--file-label
--gid
--hostname
--lock-file
--proc
--ro-bind
--remount-ro
--seccomp
--setenv
--symlink
--sync-fd
--uid
--unsetenv
--seccomp
--symlink
"
if [[ "$cur" == -* ]]; then
COMPREPLY=( $( compgen -W "$boolean_options $options_with_args" -- "$cur" ) )
fi
return 0
}
complete -F _bwrap bwrap
|