Beautiful man pages on #OpenBSD with bat 🐱
$ doas pkg_add bat
$ man pf.conf | bat -pl man
I have the following set in my .kshrc to do exactly that.

# coloured man pages
man() {
sh -c "man '$@' | col -bx | bat -l man"
}

@justine

Why do you rewrite a new man function?

I dont understand why you added `col -bx`? Option `-l` seems to arrange the text in columns; what is the diff?

col(1) - OpenBSD manual pages

@justine

Excuse-me, but I dont understand more! :(
I've read the col manpage, (before asking) but I dont understand why adding it to bat!

Sorry trying to remember where I got that from but was something related to this.

https://sebastiano.tronto.net/blog/2022-09-05-man-col/
Pipe man into col -b to get rid of ^H | Sebastiano Tronto

@justine
OK, good!

Thanks