From: Steffen Prohaska <prohaska@zib.de>
To: Junio C Hamano <gitster@pobox.com>
Cc: git@vger.kernel.org, Steffen Prohaska <prohaska@zib.de>
Subject: [PATCH] git-web--browse: Fix open HTML help pages from iTerm
Date: Wed, 23 May 2012 06:10:56 +0200 [thread overview]
Message-ID: <1337746256-15838-1-git-send-email-prohaska@zib.de> (raw)
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 and opens HTML pages.
Signed-off-by: Steffen Prohaska <prohaska@zib.de>
---
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.10.2.554.g7af14ee
next reply other threads:[~2012-05-23 4:47 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-23 4:10 Steffen Prohaska [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-09-25 18:16 [PATCH] git-web--browse: Fix open HTML help pages from iTerm Steffen Prohaska
2012-09-27 19:11 ` Junio C Hamano
2012-09-27 19:31 ` Steffen Prohaska
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1337746256-15838-1-git-send-email-prohaska@zib.de \
--to=prohaska@zib.de \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).