2013-12-18 18:09:17 +01:00
|
|
|
#
|
2017-08-25 17:11:29 +02:00
|
|
|
# Bash completion for Falkon
|
2013-12-18 18:09:17 +01:00
|
|
|
#
|
2017-08-25 17:11:29 +02:00
|
|
|
_falkon()
|
2013-03-04 13:23:04 +01:00
|
|
|
{
|
|
|
|
local cur prev opts
|
|
|
|
COMPREPLY=()
|
|
|
|
cur="${COMP_WORDS[COMP_CWORD]}"
|
|
|
|
prev="${COMP_WORDS[COMP_CWORD-1]}"
|
2016-07-31 14:35:02 +02:00
|
|
|
opts="-h --help -a --authors -v --version -p --profile=
|
|
|
|
-e --no-extensions -o --portable -t --new-tab
|
|
|
|
-w --new-window -i --private-browsing -d --download-manager
|
|
|
|
-f --fullscreen -r --no-remote -c --current-tab=
|
2019-02-02 16:24:21 +01:00
|
|
|
-u --open-window= --wmclass"
|
2013-03-04 13:23:04 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
2017-08-25 17:11:29 +02:00
|
|
|
complete -F _falkon falkon
|