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

How dow we educate our users to configure less?

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Jun 8, 2021, 17:49 UTC
Message-ID
<60bfadc0aca09_1abb8f208fd@natae.notmuch>

It has been suggested that we "educate our users" to configure less in the right way, instead of colorizing man pages ourselves [1].

The question is *how*? Nobody has answered that.
This is a continuation of the thread below.
Felipe Contreras wrote:
> Jeff King wrote:
Show 41 quoted lines
> > Moreover, I think that if they like colorized manpages, they'd probably
> > want them when running "man" themselves.
> 
> This doesn't matter.
> 
> The user might have "configured" man like this:
> 
>   man() {
>       LESS_TERMCAP_md=$'\e[01;31m' \
>       LESS_TERMCAP_me=$'\e[0m' \
>       LESS_TERMCAP_so=$'\e[01;44;33m' \
>       LESS_TERMCAP_se=$'\e[0m' \
>       LESS_TERMCAP_us=$'\e[01;32m' \
>       LESS_TERMCAP_ue=$'\e[0m' \
>       command man "$@"
>   }
> 
> Git isn't going utilize that.
> 
> Arch Linux recommends the above, and so does many online resources.
> 
> So even if it's the case what you said, that they want colorized man
> pages, *and* they have man configured, that doesn't matter.
> 
> In addition, not everyone is a Linux guru. Some might want colorized man
> pages, but not know how to get them.
> 
> I myself only learned it was possible to configure that about a year ago
> when reading Arch Linux's installation guide. Luckily I clicked "Color
> output in console", even though I thought I already had most console
> software configured.
> 
> I have 20 years of experience using Linux. Some people have less.
> 
> You presume too much of our users.
> 
> And you still haven't explained how they can properly configure
> colorized man pages for both man and git, in a way that works in all
> distributions.
> 
> [1] https://wiki.archlinux.org/title/Color_output_in_console
I am still waiting for an explanation.

How does the user properly colorize man pages for both man and git in a way that works in all distributions?

Cheers.
[1] https://lore.kernel.org/git/20210523054454.1188757-1-felipe.contreras@gmail.com/
-- 
Felipe Contreras
Next: Felipe Contreras
Message 1 of 12 in “How dow we educate our users to configure less?”
  1. Felipe ContrerasJun 8, 2021
  2. Felipe ContrerasJun 28, 2021
  3. Randall S. BeckerJun 28, 2021
  4. Felipe ContrerasJun 28, 2021
  5. Randall S. BeckerJun 28, 2021
  6. Felipe ContrerasJun 28, 2021
  7. Randall S. BeckerJun 28, 2021
  8. Felipe ContrerasJun 28, 2021
  9. Randall S. BeckerJun 28, 2021
  10. Felipe ContrerasJun 28, 2021
  11. Randall S. BeckerJun 28, 2021
  12. Felipe ContrerasJun 28, 2021

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.