--- a/.bash_completion.d/firefox Tue Feb 24 00:36:12 2015 +0200
+++ b/.bash_completion.d/firefox Tue Feb 24 00:37:27 2015 +0200
@@ -2,23 +2,23 @@
_firefox()
{
- local _opts="--sync --g-fatal-warnings -h -help -migration -ProfileManager \
+ local _opts="--sync --g-fatal-warnings -h -help -migration -ProfileManager \
-no-remote -new-instance -safe-mode -jsconsole -browser -new-window -new-tab -preferences -search \
-recording -recording-output -setDefaultBrowser"
- local cur prev
- cur=${COMP_WORDS[COMP_CWORD]}
- [[ $COMP_CWORD != 0 ]] && prev=${COMP_WORDS[COMP_CWORD-1]}
- case "$prev" in
- -P)
- local profile=~/.mozilla/firefox/profiles.ini
- if [[ ! -f $profile ]]; then
- return;
- fi
- local names=( $(sed -n '/^Name=/{s/^Name=//;p;}' $profile) )
- COMPREPLY=( $(compgen -W '${names[@]}' -- "$cur") )
- return ;;
- esac
- COMPREPLY=( $(compgen -W '$_opts' -- $cur) )
- return 0
+ local cur prev
+ cur=${COMP_WORDS[COMP_CWORD]}
+ [[ $COMP_CWORD != 0 ]] && prev=${COMP_WORDS[COMP_CWORD-1]}
+ case "$prev" in
+ -P)
+ local profile=~/.mozilla/firefox/profiles.ini
+ if [[ ! -f $profile ]]; then
+ return;
+ fi
+ local names=( $(sed -n '/^Name=/{s/^Name=//;p;}' $profile) )
+ COMPREPLY=( $(compgen -W '${names[@]}' -- "$cur") )
+ return ;;
+ esac
+ COMPREPLY=( $(compgen -W '$_opts' -- $cur) )
+ return 0
} &&
-complete -F _firefox firefox iceweasel
+ complete -F _firefox firefox iceweasel