Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'js/iterm-is-on-osx'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 3 Apr 2013 16:34:37 +0000
(09:34 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 3 Apr 2013 16:34:37 +0000
(09:34 -0700)
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
git-web--browse.sh
patch
|
blob
|
history
raw
(from parent 1:
b9c78e9
)
diff --git
a/git-web--browse.sh
b/git-web--browse.sh
index 1e827264b4cab04a801804b8d066f9d2cbb85edc..9f446798d473cee7dedc82d5d2c820cb0967b375 100755
(executable)
--- 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