Skip to content

Commit ed23f31

Browse files
committed
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
2 parents b9c78e9 + be537e4 commit ed23f31

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git-web--browse.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,8 +119,8 @@ if test -z "$browser" ; then
119119
browser_candidates="w3m elinks links lynx"
120120
fi
121121
# SECURITYSESSIONID indicates an OS X GUI login session
122-
if test -n "$SECURITYSESSIONID" \
123-
-o "$TERM_PROGRAM" = "Apple_Terminal" ; then
122+
if test -n "$SECURITYSESSIONID" || test -n "$TERM_PROGRAM"
123+
then
124124
browser_candidates="open $browser_candidates"
125125
fi
126126
# /bin/start indicates MinGW

0 commit comments

Comments
 (0)