web--browse: look at the BROWSER env var oblomov/browse
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 1 Dec 2010 14:12:10 +0000 (15:12 +0100)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 22 Dec 2010 19:17:03 +0000 (20:17 +0100)
commitc420bb6453610ae67ac50da31c162edb7d16961e
tree612344c0042219ace01d09896eab3aca0b760d92
parent1a7b5505db6d6faea87f0c2068a8070dd6a91de4
web--browse: look at the BROWSER env var

The BROWSER environment variables is a widely-accepted standard way to
set the user-preferred browser(s). It contains a colon-separate list of
commands to (try to) execute to open a web page. Each item in the list
is allowed to have a %s placeholder to be replaced by the URL, in which
case we try to run the command as is. If no placeholder is found, we
only look at the command name to see if it matches one of our known
browsers.
git-web--browse.sh