summaryrefslogtreecommitdiff
path: root/completions/firefox
diff options
context:
space:
mode:
Diffstat (limited to 'completions/firefox')
-rw-r--r--completions/firefox20
1 files changed, 10 insertions, 10 deletions
diff --git a/completions/firefox b/completions/firefox
index eeaca9f6..4656f8df 100644
--- a/completions/firefox
+++ b/completions/firefox
@@ -8,12 +8,12 @@ _firefox()
[[ $cur == -MOZ_LOG*=* ]] && prev=${cur%%=*} cur=${cur#*=}
case $prev in
- --help|--version|--display|--UILocale|-MOZ_LOG|--new-window|--new-tab|\
- --private-window|--window-size|--search|--start-debugger-server|\
- --recording|--debugger-args|-[hvPa])
+ --help | --version | --display | --UILocale | -MOZ_LOG | --new-window | --new-tab | \
+ --private-window | --window-size | --search | --start-debugger-server | \
+ --recording | --debugger-args | -[hvPa])
return
;;
- --profile|--screenshot)
+ --profile | --screenshot)
_filedir -d
return
;;
@@ -25,8 +25,8 @@ _firefox()
_filedir
return
;;
- --debugger|-d)
- COMPREPLY=( $(compgen -c -- "$cur") )
+ --debugger | -d)
+ COMPREPLY=($(compgen -c -- "$cur"))
return
;;
esac
@@ -34,13 +34,13 @@ _firefox()
$split && return
if [[ $cur == -* ]]; then
- COMPREPLY=( $(compgen -W '$(_parse_help "$1")' -- "$cur") )
- [[ $COMPREPLY == *= ]] && compopt -o nospace
+ COMPREPLY=($(compgen -W '$(_parse_help "$1")' -- "$cur"))
+ [[ ${COMPREPLY-} == *= ]] && compopt -o nospace
return
fi
- _filedir "@(?([xs])htm?(l)|pdf)"
+ _filedir "@(?([xs])htm?(l)|pdf|txt)"
} &&
-complete -F _firefox firefox mozilla-firefox iceweasel
+ complete -F _firefox firefox mozilla-firefox iceweasel
# ex: filetype=sh