News for hackers. Stuff that matters.
Re:Colorized man pages by kseistrup on Tuesday August 16, 2016 @05:43AM (#12296381)
Or you could just use most(1) as MANPAGER.

http://www.jedsoft.org/most/

Re:Colorized man pages by neuromute on Tuesday August 16, 2016 @05:57AM (#12296419)
That site needs some updating. The 'features' and 'images' sections both lack content (merely a message stating "under construction"). Although content > style, I can't help but mention how dated the site looks also.
Re:Colorized man pages by kseistrup on Tuesday August 16, 2016 @06:07AM (#12296444)
You're right, that webpage is sh*t. Nevertheless, that's the official webhome for most(1) which should be readily installable in most Linux distros.
Re:Colorized man pages by cm3 on Tuesday August 16, 2016 @07:37AM (#12296731)
I wouldn't go that far. That and other sections of the website may be incomplete, but the pages load quickly, don't require a multitude of JS calls or other slowdowns. I love pages that do what they're meant to without unwarranted bloat. Gmail and Github use JS for web apps, and that's okay, but a static page doesn't need that and is worse off if they incorporate it. If you go to a random wikipedia article and try to click through references and land on a newpaper's site, 4 out of 5 times the link will be dead. So much for complex CMS installations. I'm (not) sorry that I prefer web pages that work more than ones that chase some short-lived frontend tech.

With all that being said, I'm sure the author would appreciate a contribution to fill in the blanks.

Re:Colorized man pages by neuromute on Tuesday August 16, 2016 @06:36AM (#12296532)
I just installed it... it works beautifully. Thanks for the heads up!
Re:Colorized man pages by karl42 on Tuesday August 16, 2016 @06:55AM (#12296584)
Looks great! There's some info and a screenshot on the debian package page: https://packages.debian.org/sid/most

The official website doesn't really contain any information.

Re:Colorized man pages by pbhjpbhj on Tuesday August 16, 2016 @07:54AM (#12296800)
"most" is impossible to search. "mostpager" would have been better with a soft-link from most as default.

Anyway, how do I use it, I've sudo apt install-ed it. Scanning the manpage doesn't give me any great hints e.g. "most /usr/share/man/man1/apt-add-repository.1.gz" brings it up but the manpage shows control data; using as if it were man just fails (it thinks I'm passing it a file).

Hint? Or do I need to read the source ...

Re:Colorized man pages by 1_player on Tuesday August 16, 2016 @08:10AM (#12296869)
If I recall correctly... add to your .bashrc

export PAGER=most

or for my fish friends, add to ~/.config/fish/config.fish

set -x PAGER most

This'll use `most` everytime a pager is needed (i.e. git log), if you want to use `most` only for man pages, replace PAGER with MANPAGER

Re:Colorized man pages by chanux on Tuesday August 16, 2016 @08:36AM (#12297024)
On fish same effect could be achieved by running

set -Ux PAGER mostU

If you prefer to keep fish.config cleaner, that is :)

Re:Colorized man pages by kseistrup on Tuesday August 16, 2016 @09:56AM (#12297472)
Either

    export PAGER=most
or

    export MANPAGER=most
depending on whether you want to use most for all paging or just paging of man pages.
Re:Colorized man pages by lucb1e on Tuesday August 16, 2016 @10:24AM (#12297633)
Just installed most, but it doesn't support scrolling via the j and k keys. I'd have to move all the way over to the arrow keys. This is not a replacement for less. Uninstalling.
Re:Colorized man pages by kseistrup on Tuesday August 16, 2016 @11:03AM (#12297899)
Key bindings can be configured in ~/.mostrc, read most(1).
Re:Colorized man pages by Symbiote on Tuesday August 16, 2016 @10:32AM (#12297694)
It's using Emacs keybindings, so the shortcuts are ^N and ^P.

Space and backspace are equivalent to page down and page up.

Re:Colorized man pages by eriknstr on Tuesday August 16, 2016 @02:15PM (#12299362)
My first reaction exactly!
Re:Colorized man pages by znpy on Tuesday August 16, 2016 @07:09AM (#12296632)
most is literally the first package I install on every box on which I get or am given admin right.

It works so well it is unsane not to use it.

Thank God I saw that name while installing Slackware a long time ago, and since then it had been a pleasure to use.

Re:Colorized man pages by andlrc on Tuesday August 16, 2016 @07:35AM (#12296718)
I use vim as a manpager. This way I get all my binds for navigating (I mapped <c-e> to scroll two lines, etc), colors is supported and folds.
Re:Colorized man pages by devnonymous on Tuesday August 16, 2016 @01:02PM (#12298838)
Or pinfo which supports both man and info pages.
Re:Colorized man pages by therealmarv on Tuesday August 16, 2016 @06:33AM (#12296521)
omg, why do I discover this only now? thanks.