this post was submitted on 12 Aug 2023
21 points (95.7% liked)

Linux

48352 readers
455 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

I use zsh and have export MANPAGER="nvim -Rc 'set ft=man' -" in my .zshrc. this used to work well but since a couple of weeks ago, whenever I run man (e.g. man man) I get many weird escape characters (e.g. MAN(1)). when running man and manually piping the output to another program (e.g. man man | nvim -Rc 'set ft=man' -) I don't get these characters (e.g. MAN(1)). I haven't been able to figure out why this happens or how to fix it. does anyone else have an idea?

edit: turns out :h man had a solution, using export MANPAGER='nvim +Man!'' instead of export MANPAGER="nvim -Rc 'set ft=man' -".

top 2 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago (1 children)

I added this to my .zshrc after getting weird formatting in manpages. I do use bat as a my pager though so not too sure if it will help.

export MANROFFOPT='-c'

[–] lemmonade 3 points 1 year ago

thanks! this didn't solved my specific problem but caused another problem for me (e.g. _M_A_N(1)), but while searching about MANROFFOPT I came across a reddit post I had somehow missed when searching for a solution, and it it the actual solution was mentioned. what worked for me is export MANPAGER='nvim +Man!' instead.