blob: f2bc8c300052de5e1995a645818f7deaf5b255a1 (
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
|
# opera(1) completion -*- shell-script -*-
_opera()
{
local cur prev words cword
_init_completion || return
case "$prev" in
?(-)-widget | ?(-)-urllist | ?(-)-uiparserlog | ?(-)-uiwidgetsparserlog | \
?(-)-profilinglog)
_filedir
return
;;
?(-)-[psb]d)
_filedir -d
return
;;
?(-)-remote)
COMPREPLY=($(compgen -W 'openURL\\( openFile\\( openM2\\(
openComposer\\( addBookmark\\( raise\\(\\) lower\\(\\)' \
-- "$cur"))
[[ ${COMPREPLY-} == *\( ]] && compopt -o nospace
return
;;
?(-)-windowname)
COMPREPLY=($(compgen -W 'first last opera{1..9}' -- "$cur"))
return
;;
?(-)-geometry | ?(-)-window | ?(-)-display | ?(-)-urllistloadtimeout | \
?(-)-delaycustomizations | ?(-)-dialogtest | ?(-)-inidialogtest | \
?(-)-gputest)
# argument required but no completions available
return
;;
esac
if [[ $cur == -* ]]; then
COMPREPLY=($(compgen -W '$(_parse_help "$1" -help)' -- "$cur"))
[[ ${COMPREPLY-} == *= ]] && compopt -o nospace
return
fi
_filedir '@(?([xX]|[sS])[hH][tT][mM]?([lL]))'
} &&
complete -F _opera opera
# ex: filetype=sh
|