forked from bazurbat/spawn
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash_completion
More file actions
56 lines (45 loc) · 1.28 KB
/
bash_completion
File metadata and controls
56 lines (45 loc) · 1.28 KB
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
55
56
### Spawn completion definitions ###
_spawn_complete() {
local cur prev
_get_comp_words_by_ref cur prev
local opts='--help --as-root --dry-run
--arch --bind-home
--with-ssh-agent --with-gpg-agent --with-x11 --with-pulseaudio
--to-stderr --share-devices
--using-docker --using-nspawn --using-chroot
--cleanup'
compopt -o dirnames
case $prev in
spawn)
COMPREPLY=($(compgen -W "$opts" -- "$cur"))
return ;;
--arch)
COMPREPLY=($(compgen -W "x86 x86-64" -- "$cur"))
return ;;
--bind-home)
COMPREPLY=()
return ;;
esac
case $cur in
-*)
COMPREPLY=($(compgen -W "$opts" -- "$cur"))
return ;;
esac
}
_init_ubuntu_root_complete() {
local cur prev
_get_comp_words_by_ref cur prev
local opts='--help --init --default --enable-backports --add-i386
--install-java6 --install-java8-openjdk
--install-wine --install-perforce --install-dev-tools
--add-user --skip-update'
compopt -o dirnames
case $cur in
-*)
COMPREPLY=($(compgen -W "$opts" -- "$cur"))
return ;;
esac
}
complete -F _spawn_complete spawn
complete -F _init_ubuntu_root_complete init-ubuntu-root
### End of Spawn completion definitions ###