A little AppleScript to grab the URL from the active tab of your default browser.
$ osascript ./grab-url.applescript; pbpaste
Crudely - there's nothing at all nice about this yet. It simply uses GUI scripting to select and copy the URL to the clipboard …