Re:CLI: Improved
by mlevental on Thursday August 30, 2018 @02:39PM
(#17879472)
bat is cool but is there a way to get not to dump everything into my terminal and just page just like less? i wonder if there's a `bless` ?
[ Parent
| on HN ]
I know what you're saying; I wanted the same thing. Here's how I resolved it: https://gist.github.com/busterc/f8e988b4ca63f24c71c56daf448a...
You should be able to pass `--paging always`. The default `auto` will only page if the file contents is bigger than your screen.
this does paging but still leaves the page in my buffer/terminal/whatever.
If your terminal is big enough, it will just output like cat, otherwise, you get a pager.
You can disable it with `bat --paging never`