plan9port

[fork] Plan 9 from user space
git clone git://src.adamsgaard.dk/plan9port # fast
git clone https://src.adamsgaard.dk/plan9port.git # slow
Log | Files | Refs | README | LICENSE Back to index

commit 4d0927f5969c6f68cf13703cd9bb9d2ce5ea770e
parent 88e348435e417d1b7c9a8bde88ed93fbb9d98d6e
Author: rsc <devnull@localhost>
Date:   Tue,  4 Jan 2005 21:15:55 +0000

modifications for firefox

Diffstat:
Mbin/web | 17++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)

diff --git a/bin/web b/bin/web @@ -2,20 +2,27 @@ plumb1() { - case $BROWSER in + case x-$BROWSER in # Other browsers here # ... *opera*) - $BROWSER -remote 'openURL('$i', new-page)' + $BROWSER -remote 'openURL('$i',new-page)' ;; *firebird*) - $BROWSER -remote 'openURL('$i', new-window)' + $BROWSER -remote 'openURL('$i',new-window)' ;; *firefox*) - $BROWSER -remote 'openURL('$i', new-tab)' + $BROWSER -remote 'openURL('$i',new-tab)' + ;; + x-) + # run firefox as default! + firefox -remote 'openURL('$i',new-tab)' ;; *mozilla*) - $BROWSER -remote 'openURL('$i', new-tab)' + $BROWSER -remote 'openURL('$i',new-tab)' + ;; + x-*) + $BROWSER -remote 'openURL('$i',new-tab)' ;; esac }