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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Romain Francoise <romain@xxxxxxxxxxxxx> writes:

> 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@xxxxxxxxxxxxx>
> ---
>
> 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.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux