You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set the MANPAGER environment variable to bat -l man, but it doesn't render the man page as it would if I ran man bat | bat -l man. How can I make it recognize the manpages as manpages
Piping a man invocation into something else changes the way man outputs the manpage - it removes formatting basically. i.e. man bat | cat is already different from man bat. Indeed, bat wasn't designed to syntax highlight text which already contains ANSI escape sequences (though a recent change was implemented to cater for this: #2999) or weird use of backspace characters to repeat a character to make it bold typewriter style.
The guide for setting the MANPAGER env var (among others) to remove the odd formatting man applies and thus let bat handle it is in the bat readme: https://github.com/sharkdp/bat?tab=readme-ov-file#man
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I set the
MANPAGER
environment variable tobat -l man
, but it doesn't render the man page as it would if I ranman bat | bat -l man
. How can I make it recognize the manpages as manpagesBeta Was this translation helpful? Give feedback.
All reactions