plan9port/bin/web

39 lines
455 B
Text
Raw Normal View History

2004-03-02 23:11:58 +00:00
#!/bin/sh
plumb1()
{
case $BROWSER in
# Other browsers here
# ...
*opera*)
$BROWSER -remote 'openURL('$i', new-page)'
;;
*firebird*)
$BROWSER -remote 'openURL('$i', new-window)'
2004-03-25 23:03:22 +00:00
;;
2004-03-21 04:32:36 +00:00
*firefox*)
$BROWSER -remote 'openURL('$i', new-window)'
2004-03-02 23:11:58 +00:00
;;
esac
}
if [ $# = 0 ]
then
plumb1 about:blank
else
for i
do
if [ -f "$i" ]
then
i=file://`pwd`/$i
fi
plumb1 $i
done
fi
case $BROWSER in
*opera*)
$BROWSER -remote 'raise()'
esac