2013-12-18 18:09:17 +01:00
|
|
|
#
|
|
|
|
# Bash completion for QupZilla
|
|
|
|
#
|
2013-03-04 13:23:04 +01:00
|
|
|
_qupzilla()
|
|
|
|
{
|
|
|
|
local cur prev opts
|
|
|
|
COMPREPLY=()
|
|
|
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
|
|
|
opts="-h --help -a --authors -v --version -p= --profile=
|
2014-01-28 11:29:08 +01:00
|
|
|
-ne --no-extensions -po --portable -nt --new-tab
|
|
|
|
-nw --new-window -pb --private-browsing -dm --download-manager
|
|
|
|
-fs --fullscreen -nr --no-remote -ct= --current-tab=
|
2013-03-04 13:23:04 +01:00
|
|
|
-ow= --open-window="
|
|
|
|
|
|
|
|
if [[ ${cur} == -* ]] ; then
|
|
|
|
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) )
|
2013-12-18 18:09:17 +01:00
|
|
|
else
|
|
|
|
_filedir
|
2013-03-04 13:23:04 +01:00
|
|
|
fi
|
|
|
|
}
|
|
|
|
complete -F _qupzilla qupzilla
|