open url in new tab script

updated @ 2006-01-22

Update: The latest version[s] of Firefox do this by default [at least 1.5 does].

Small script for opening a url in a new tab in Mozilla Firefox

#!/bin/sh
mozilla-firefox -a firefox -remote 'openURL('$1', new-tab)' || mozilla-firefox $1 &

Save this for example in ~/bin/firefox-remote and let your system point to that file as default browser.