New versions of mercurial will apply colors to the output of most commands and will pipe commands with long output to a pager. How do I restore the old behavior to not color output and never use a pager?
Add the following to your .hgrc:
[ui]
color = never
paginate = never
When working with commandline, you can also add parameters or options to your commands. This is however not permanent. The hg --help --verbose
reveals:
--color TYPE when to colorize (boolean, always, auto, never, or debug)
--pager TYPE when to paginate (boolean, always, auto, or never)
(default: auto)
So the next command disables your pager and does not show any colors:
hg incoming --pager never --color never
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With