Read Manpages With Less, Bat, Vim or Neovim

<iframe id="lbry-iframe" width="560" height="315" src="$/embed/read-manpages-" allowfullscreen></iframe>

· Web · 8 · 8 · 12

@derek I just assume there's a '-h' or '--help' for it; After that, my levels of annoyed gets increased.

@duckhp @derek After distrotube opened my eyes to tldr, that became 90% of what I needed.

@thegeekfather @derek

speaking of less.. While using tmux quite a bit; I've become accustomed to using:

$ <somecommand> --help | less

It beats tmux pane scrolling

@derek I sometimes like to turn a man page into a pdf with ghostscript.
Here's the function.

pdfify() # convert man pages to pdf and open the pdf file
man -t $1 | ps2pdf - $1.pdf && setsid xdg-open $1.pdf &> /dev/null

@derek I'm going to have to find your video on Neovim then cause I've never used it and have no idea why it's better than vim.

@derek I've wrote a bash script that searches the specified manpage for the specified words.

Sign in to participate in the conversation

A mastodon instance created by Derek Taylor, creator of the DistroTube channels on YouTube and LBRY. Derek is an advocate for free and open source software.