4

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
Mike Graf
  • 397
  • 1
  • 3
  • 14

1 Answers1

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.

Mark Wagner
  • 17,764
  • 2
  • 30
  • 47