-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathicedteaweb-completion
44 lines (36 loc) · 1.22 KB
/
icedteaweb-completion
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
#/bin/bash
#place this file over to /etc/bash_completion.d/ to make this file useful
#Note: If you do not have bash-completion you will need to install it
_itweb-settings()
{
local cur prev opts base
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
# Icedtea-web settings Options
opts="-check -get -headless -help -info -list -reset -set -verbose"
COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
return 0
}
complete -F _itweb-settings itweb-settings
_policyeditor()
{
local cur prev opts base
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
# PolicyEditor Options
opts="-codebase -file -defaultfile -help"
COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
return 0
}
complete -F _policyeditor policyeditor
_javaws()
{
local cur prev opts base
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
# JavaWs Options
opts="-about -help -license -viewer -Xclearcache -allowredirect -arg -headless -html -jnlp -nosecurity -noupdate -param -property -strict -update -verbose -version -Xignoreheaders -xml -Xnofork -Xoffline -Xtrustnone"
COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
return 0
}
complete -F _javaws javaws