Colors with unix command “watch”?

前端 未结 6 817
无人及你
无人及你 2020-12-12 17:57

Some commands that I use display colors, but when I use them with watch the colors disappears:

watch -n 1 node file.js

Is it possible to ha

6条回答
  •  孤街浪徒
    2020-12-12 18:17

    Some newer versions of watch now support color.

    For example watch --color ls -ahl --color.

    Related.

提交回复
热议问题