New answers tagged

0

On Linux, you could try the following MANPAGER settings [1]. The second one needs bat. MANPAGER="less -R --use-color -Dd+r -Du+b" or MANPAGER="sh -c 'col -bx | bat -l man -p'" On Gentoo Linux, you could also try this, which needs app-text/manpager MANPAGER=manpager (I didn't read the code of manpager, I guess it is just a wrapper of ...


1

tput is not working because it needs to know current terminal emulator from $TERM environment variable. When ~\.profile is reading, there's just no terminal emulator in use, so tput just can't produce any output. It is possible to specify which terminal capability to use in tput by -T key. So this code will work: LESS_TERMCAP_mb=$(tput -T ansi blink) # start ...


1

The manual states: You may define your own less commands by creating a lesskey source file [...] If the environment variable LESSKEYIN is set, less uses that as the name of the lesskey source file. Otherwise, less looks in a standard place for the lesskey source file: On Unix systems, less looks for a lesskey file called "$XDG_CONFIG_HOME/lesskey"...


0

Turned out I had the following in .gitconfig [core] pager = less -r When I removed this, less started showing the first line correctly.


Top 50 recent answers are included