Beautiful man pages on #OpenBSD with bat π±$ doas pkg_add bat$ man pf.conf | bat -pl man
-
@justine
Woah, a Korn shell user.
-
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?
-
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?
-
Excuse-me, but I dont understand more!

I've read the col manpage, (before asking) but I dont understand why adding it to bat! -
@obj Hope to see https://github.com/plp13/qman soon in ports


-
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/
-
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/@justine
OK, good!Thanks
-
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/See: https://doc.huc.fr.eu.org/en/post/bat-cat/
(particularly the acknowledgements section)
-
See: https://doc.huc.fr.eu.org/en/post/bat-cat/
(particularly the acknowledgements section)
-
Beautiful man pages on #OpenBSD with bat

$ doas pkg_add bat
$ man pf.conf | bat -pl man
@obj
I use neovim as my pager here - also pretty cool
export MANPAGER='nvim +Man!'
-
@justine@snac.smithies.me.uk @obj@bsd.cafe
i use zsh on my OpenBSD boxes:
this is what i came up with:if command -v bat &> /dev/null; then zsh-defer eval $(bat --completion zsh) export BAT_THEME=ansi alias cat="bat -pp" alias bat="bat -p" # colored manpages function man { sh -c "man '$@' | col -bx | \bat -pl man" } # colored -h and --help alias -g -- -h='-h 2>&1 | \bat -pl help' alias -g -- --help='--help 2>&1 | \bat -pl help' # help command function help { sh -c "'$@' --help 2>&1 | \bat -pl help" } fithe
if command -v batbit is nice to have in case bat for whatever reason isn't on your system. -
R relay@relay.mycrowd.ca shared this topic

οΈ