tmodifications for firefox - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 4d0927f5969c6f68cf13703cd9bb9d2ce5ea770e
DIR parent 88e348435e417d1b7c9a8bde88ed93fbb9d98d6e
HTML Author: rsc <devnull@localhost>
Date: Tue, 4 Jan 2005 21:15:55 +0000
modifications for firefox
Diffstat:
M bin/web | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
---
DIR diff --git a/bin/web b/bin/web
t@@ -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
}