linux中grep输出字符有色彩配置

作者:简简单单 2014-12-01

在全局变量下加入以下代码:

alias grep='grep --color=auto'

QQ截图20141129144614

 出自grep的官方文档

--color[=WHEN],
--colour[=WHEN]       use markers to highlight the matching strings;
WHEN is `always', `never', or `auto'

相关文章

精彩推荐