-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathicedteaweb-completion.in
43 lines (36 loc) · 984 Bytes
/
icedteaweb-completion.in
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
#/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="@ITWEBSETTINGS@"
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="@POLICYEDITOR@"
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="@JAVAWS@"
COMPREPLY=($(compgen -W "${opts}" -- ${cur}))
return 0
}
complete -F _javaws javaws