Skip to content

How not to clear the output on quit? #2404

Answered by DeadNews
zer09 asked this question in Q&A
Discussion options

You must be logged in to vote

https://github.com/sharkdp/bat/blob/master/README.md#automatic-paging

Automatic paging

By default, bat pipes its own output to a pager (e.g. less) if the output is too large for one screen.
If you would rather bat work like cat all the time (never page output), you can set --paging=never as an option, either on the command line or in your configuration file.
If you intend to alias cat to bat in your shell configuration, you can use alias cat='bat --paging=never' to preserve the default behavior.

For example:

bat --paging=never .bashrc

or via config file; onfiguration file wiki.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zer09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants