summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-04-03 16:34:37 (GMT)
committerJunio C Hamano <gitster@pobox.com>2013-04-03 16:34:37 (GMT)
commited23f31bbe370eee92a06900b898a969efb80d31 (patch)
tree2b0c1b8080e5ddfd693485d5f354697804a331f5
parentb9c78e97237df7df45549d29755e51b4a0fdc5ea (diff)
parentbe537e43ca8c6e38a3cf7024b28d6daf54611132 (diff)
downloadgit-ed23f31bbe370eee92a06900b898a969efb80d31.zip
git-ed23f31bbe370eee92a06900b898a969efb80d31.tar.gz
git-ed23f31bbe370eee92a06900b898a969efb80d31.tar.bz2
Merge branch 'js/iterm-is-on-osx'
Add more logic to detect graphic environment of OS X by simply checking TERM_PROGRAM has some value, not Apple_Terminal, to detect iTerm.app and any other. * js/iterm-is-on-osx: git-web--browse: recognize any TERM_PROGRAM as a GUI terminal on OS X
-rwxr-xr-xgit-web--browse.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-web--browse.sh b/git-web--browse.sh
index 1e82726..9f44679 100755
--- a/git-web--browse.sh
+++ b/git-web--browse.sh
@@ -119,8 +119,8 @@ if test -z "$browser" ; then
browser_candidates="w3m elinks links lynx"
fi
# SECURITYSESSIONID indicates an OS X GUI login session
- if test -n "$SECURITYSESSIONID" \
- -o "$TERM_PROGRAM" = "Apple_Terminal" ; then
+ if test -n "$SECURITYSESSIONID" || test -n "$TERM_PROGRAM"
+ then
browser_candidates="open $browser_candidates"
fi
# /bin/start indicates MinGW