From d184357767cfa266a6d8a32016f66e8e6bd1f17f Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 24 Jun 2015 18:10:44 +1200 Subject: Undo hare-brained last few commits GREP_OPTIONS doesn't work if it's not exported, which ought to have been painfully obvious. Oh well. --- sh/profile.d/grep.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sh') diff --git a/sh/profile.d/grep.sh b/sh/profile.d/grep.sh index bcdb009e..4e27b087 100644 --- a/sh/profile.d/grep.sh +++ b/sh/profile.d/grep.sh @@ -1,7 +1,7 @@ # Store grep(1)'s --help output in a variable grep_help=$(grep --help 2>/dev/null) -# Use GREP_COLORS to add color output to grep(1) if option available +# Run dircolors(1) to export LS_COLORS if available and appropriate case $grep_help in *--color*) GREP_COLORS='ms=01;31:mc=01;31:sl=:cx=:fn=35:ln=32:bn=32:se=36' -- cgit v1.2.3