2
我知道你可以使用环境变量$GREP_OPTIONS
和$GREP_COLOR
设置grep的颜色默认值,但我似乎无法找到任何方式来设置与pcregrep
默认的颜色选项...设置pcregrep颜色默认
我有export GREP_OPTIONS='--color=auto'
和export GREP_COLOR='31'
现在在我的/ etc/profile中,并且想要具有pcregrep
的等效默认值。
tldr:默认情况下,我如何使pcregrep
颜色匹配?