Blob
1 #!/bin/sh3 plumb1()4 {5 case x-$BROWSER in6 # Other browsers here7 # ...8 *opera*)9 $BROWSER -remote 'openURL('$i',new-page)'10 ;;11 *firebird*)12 $BROWSER -remote 'openURL('$i',new-window)'13 ;;14 *firefox*)15 $BROWSER -remote 'openURL('$i',new-tab)'16 ;;17 x-)18 # run firefox as default!19 firefox -remote 'openURL('$i',new-tab)'20 ;;21 *mozilla*)22 $BROWSER -remote 'openURL('$i',new-tab)'23 ;;24 x-*)25 $BROWSER -remote 'openURL('$i',new-tab)'26 ;;27 esac28 }30 if [ $# = 0 ]31 then32 plumb1 about:blank33 else34 for i35 do36 if [ -f "$i" ]37 then38 p=`pwd`39 i=`cleanname -d $p $i`40 i=file://$i41 fi42 plumb1 $i43 done44 fi46 case $BROWSER in47 *opera*)48 $BROWSER -remote 'raise()'49 esac