I have a command (phpunit
) which has a colored output. According to the watch
, command I should be able to use the --color
flag to allow color rendering to pass through. However, this isn't working. Is there any other ways of solving this?
Bash – Alternative to watch which support colors
bashUtilitieswatch
Best Answer
phpunit | cat
didn't work (signalling that this is not a problem withwatch
but thephpunit
command).As an alternative, the following bash script approach worked great for me:
Usage: