Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: multios stripping colors?



On 31/01/18 11:30 PM, Oliver Kiddle wrote:

Some commands, make coloured output conditional on whether their
standard output points to a terminal. For an example, try:
   git log | cat

Oliver

By gum, that's it.

    egrep --color=always

... solves the problem.  As you say, egrep was trying to be clever there, detecting the output to the file and killing the color, but you can force the issue with 'color=always'.  Thanks Oliver, there is always a way.




Messages sorted by: Reverse Date, Date, Thread, Author