From: Steffen Prohaska Date: Tue, 25 Sep 2012 18:16:43 GMT Subject: [PATCH] git-web--browse: Fix open HTML help pages from iTerm Message-ID: <1348597003-28403-1-git-send-email-prohaska@zib.de> iTerm is an alternative to the default terminal emulation program on Mac OS X. git-web--browse wasn't aware of iTerm and failed to open HTML help pages when used in a shell session running in iTerm, reporting "No known browser available." Now it works as expected. Signed-off-by: Steffen Prohaska --- git-web--browse.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/git-web--browse.sh b/git-web--browse.sh index 1e82726..95ecf65 100755 --- a/git-web--browse.sh +++ b/git-web--browse.sh @@ -120,7 +120,8 @@ if test -z "$browser" ; then fi # SECURITYSESSIONID indicates an OS X GUI login session if test -n "$SECURITYSESSIONID" \ - -o "$TERM_PROGRAM" = "Apple_Terminal" ; then + -o "$TERM_PROGRAM" = "Apple_Terminal" \ + -o "$TERM_PROGRAM" = "iTerm.app" ; then browser_candidates="open $browser_candidates" fi # /bin/start indicates MinGW -- 1.7.12.1.403.g14e83b4