Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

as the title says, I want to see colors in my watch command.

ex:

# enable colors when running javascript unittests with watch
watch mocha 

# enable colors when doing `ls`
watch ls -aG
share|improve this question

1 Answer 1

Some programs, such as ls try to be "smart" and only use color when connected to a terminal. Hopefully they have a way to force color. ls does.

watch --color ls -aG --color

Edit: Only tested with Ubuntu Raring.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.