X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=.profile.d%2Fgrep.bashrc;h=20defe0eec4d4353392f13ab28ab39458fff8e59;hb=dc63ca686dd762680e884a55538135cb197da9b6;hp=04bd1d8b7d5a064775546484c8ca63bc06dcca65;hpb=aad4d6943a871df9cc79f7f6d4351ac5ee3aa0bf;p=profile.git diff --git a/.profile.d/grep.bashrc b/.profile.d/grep.bashrc index 04bd1d8..20defe0 100644 --- a/.profile.d/grep.bashrc +++ b/.profile.d/grep.bashrc @@ -1,3 +1,4 @@ +# profile-required: TERM.bashrc # Use colours for grep if possible. if grep -V 2>/dev/null | grep GNU >/dev/null; then alias grep='grep --color=auto' @@ -12,7 +13,7 @@ if grep -V 2>/dev/null | grep GNU >/dev/null; then [ -z "$colours" ] && colours=0 if [ $colours = 256 ]; then export GREP_COLORS='cx=38;5;246:sl=:mt=33:fn=38;5;25:ln=38;5;82:bn=33:se=38;5;246' - elif [ $colours -gt 88 ]; then + elif [ $colours -ge 88 ]; then export GREP_COLORS='cx=38;5;84:sl=:mt=33:fn=38;5;22:ln=38;5;44:bn=33:se=38;5;84' else export GREP_COLORS='cx=31:sl=:mt=33:fn=36:ln=34:bn=33:se=31'