mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-02 10:01:11 +02:00
improved firefox support
This commit is contained in:
parent
b6e6a91e0f
commit
4ea03291a8
3 changed files with 24 additions and 2 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2006-12-08 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
|
* based on 23038: Completion/Unix/Command/_webbrowser,
|
||||||
|
Completion/X/Command/_mozilla: remove firefox from _webbrowser,
|
||||||
|
it's handled by Completion/X/Command/_mozilla; add some
|
||||||
|
firefox-specific options.
|
||||||
|
|
||||||
2006-12-08 Clint Adams <clint@zsh.org>
|
2006-12-08 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
* 23039: Completion/X/Command/_mozilla: handle iceweasel as
|
* 23039: Completion/X/Command/_mozilla: handle iceweasel as
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#compdef amaya arena chimera dillo express firefox galeon grail gzilla hotjava konqueror light mmm Mosaic netrik opera phoenix retawq skipstone www xmosaic zen
|
#compdef amaya arena chimera dillo express galeon grail gzilla hotjava konqueror light mmm Mosaic netrik opera phoenix retawq skipstone www xmosaic zen
|
||||||
|
|
||||||
_alternative 'files:file:_files' 'urls:URL:_urls'
|
_alternative 'files:file:_files' 'urls:URL:_urls'
|
||||||
|
|
|
@ -9,7 +9,22 @@ local -a mozopts
|
||||||
if [[ $service = *remote* ]]; then
|
if [[ $service = *remote* ]]; then
|
||||||
state=remote
|
state=remote
|
||||||
else
|
else
|
||||||
if [[ $service != *firefox* ]]; then
|
if [[ $service = *firefox* ]]; then
|
||||||
|
mozopts=(
|
||||||
|
'-browser[open browser window]' \
|
||||||
|
'-console[start with debugging console]' \
|
||||||
|
'-h[output help message]' \
|
||||||
|
'-help[output help message]' \
|
||||||
|
'-inspector[start with DOM Inspector]:URL to inspect:->location' \
|
||||||
|
'-install-global-extension[install an extension]:extension to install:_files' \
|
||||||
|
'-new-window[load URL in new window]:URL to load:->location' \
|
||||||
|
'-new-tab[load URL in new tab]:URL to load:->location' \
|
||||||
|
'-no-remote[run with multiple profiles]' \
|
||||||
|
'-profile[specify profile file]:profile file:_files' \
|
||||||
|
'-v[show version]' \
|
||||||
|
'-version[show version]' \
|
||||||
|
)
|
||||||
|
else
|
||||||
mozopts=(
|
mozopts=(
|
||||||
"($popts)-installer[start with 4.x migration window]"
|
"($popts)-installer[start with 4.x migration window]"
|
||||||
"($popts)-CreateProfile:profile"
|
"($popts)-CreateProfile:profile"
|
||||||
|
|
Loading…
Reference in a new issue