summaryrefslogtreecommitdiff
path: root/git-web--browse.sh
diff options
context:
space:
mode:
authorNathan W. Panike <nathan.panike@gmail.com>2010-07-22 11:58:20 -0500
committerJunio C Hamano <gitster@pobox.com>2010-07-25 23:14:18 -0700
commitec136663c7d5a8e2ce1664ce79f2297e2e61c86f (patch)
treef2e1ac2f7a46affe62d4d37f03882bffec2c171c /git-web--browse.sh
parentffd45f967817a484933c7f905572c9f31f9b9aab (diff)
downloadgit-ec136663c7d5a8e2ce1664ce79f2297e2e61c86f.tar.gz
Add a google-chrome option for web--browse
On some systems, the chrome browser is named google-chrome. We add support for this case. Signed-off-by: Nathan W. Panike <nathan.panike@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-web--browse.sh')
-rwxr-xr-xgit-web--browse.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/git-web--browse.sh b/git-web--browse.sh
index dbded76aaf..3fc4166b25 100755
--- a/git-web--browse.sh
+++ b/git-web--browse.sh
@@ -31,7 +31,7 @@ valid_custom_tool()
valid_tool() {
case "$1" in
- firefox | iceweasel | chrome | chromium | konqueror | w3m | links | lynx | dillo | open | start)
+ firefox | iceweasel | chrome | google-chrome | chromium | konqueror | w3m | links | lynx | dillo | open | start)
;; # happy
*)
valid_custom_tool "$1" || return 1
@@ -103,7 +103,7 @@ fi
if test -z "$browser" ; then
if test -n "$DISPLAY"; then
- browser_candidates="firefox iceweasel chrome chromium konqueror w3m links lynx dillo"
+ browser_candidates="firefox iceweasel google-chrome chrome chromium konqueror w3m links lynx dillo"
if test "$KDE_FULL_SESSION" = "true"; then
browser_candidates="konqueror $browser_candidates"
fi
@@ -146,7 +146,7 @@ case "$browser" in
test "$vers" -lt 2 && NEWTAB=''
"$browser_path" $NEWTAB "$@" &
;;
- chrome|chromium)
+ google-chrome|chrome|chromium)
# Actual command for chromium is chromium-browser.
# No need to specify newTab. It's default in chromium
eval "$browser_path" "$@" &