]> git.phdru.name Git - git-scripts.git/blob - git-open
pull-usrlocalsrc: add git-remote-hg to PATH
[git-scripts.git] / git-open
1 #! /bin/sh
2
3 browser_section="`git config --get web.browser`"
4 browser_cmd="`git config --get browser.\"$browser_section\".cmd`"
5 if [ -z "$browser_cmd" ]; then
6    browser_cmd="webbrowser -n"
7 fi
8 exec $browser_cmd "`git config --get remote.$1.url`"