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?
As an alternative, the following bash script approach worked great for me:
Here my implementation, it's a bash script but it's very easy convert it to function (to change 'exit' to 'return')