Repository navigation
Bat doesn't recognize that its the manpage. #3027
Replies: 2 comments
|
Piping a |
|
The usual fix is to strip the overstrike/backspace formatting first and let bat render the cleaned text: export MANPAGER='sh -c "col -bx | bat -l man -p"'Some setups also use: export MANROFFOPT='-c'So the short version is: bat is not failing to “detect manpages”; |
Uh oh!
There was an error while loading. Please reload this page.
I set the
MANPAGERenvironment 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 manpagesAll reactions