#! /bin/sh browser_section="`git config --get web.browser`" browser_cmd="`git config --get browser.\"$browser_section\".cmd`" if [ -z "$browser_cmd" ]; then browser_cmd="webbrowser -n" fi exec $browser_cmd "`git config --get remote.$1.url`"