5

How to send all output to a pager by default?

view full story
linux-howto

http://unix.stackexchange.com – git has a very nice feature for many of its commands: The output on an interactive terminal is passed to a pager by default, in such a way that it only keeps the pager open if there's more than one screenful of output, and it leaves the output on the terminal instead of clearing it when you exit. Is there some way to configure this to be the default for Bash in GNOME Terminal? That is, to send all TTY output (ideally including standard error) of every command to a pager. The idea is that sometimes commands unexpectedly produce tons of output (especially in case of syntax or other errors), and (HowTos)