git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] builtin-help: fallback to GIT_MAN_VIEWER before man

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 29, 2008, 16:12 UTC
Message-ID
<7vod3b4x6n.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<877i9zsw6c.fsf@elegiac.orebokech.com>
Romain Francoise <romain@orebokech.com> writes:
Show 11 quoted lines
> In some situations it is useful to be able to switch viewers via the
> environment, e.g. in Emacs shell buffers.  So check the GIT_MAN_VIEWER
> environment variable and try it before falling back to "man".
>
> Signed-off-by: Romain Francoise <romain@orebokech.com>
> ---
>
> The motivation for this is that I want the viewer to be "woman" in
> Emacs shell buffers and "man" otherwise, and having an environment
> variable (like PAGER or EDITOR) is cleaner than using a
> man.viewer.cmd wrapper to do the redirection.

Obviously I am biased, as I am among the people who have PAGER=cat and EDITOR=emacsclient, and 70% of whose command invocation is from within the "M-x compile", but I like this.

Previous: Romain Francoise
Message 2 of 2 in “builtin-help: fallback to GIT_MAN_VIEWER before man”
  1. builtin-help: fallback to GIT_MAN_VIEWER before manRomain Francoise, Aug 29, 2008
  2. Junio C HamanoAug 29, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.