diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-24 18:10:44 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-06-24 18:10:44 +1200 |
commit | d184357767cfa266a6d8a32016f66e8e6bd1f17f (patch) | |
tree | 973f67cd0b5dbead3bcd9020820b6b5952577a7a /sh/profile.d | |
parent | Use Bashy syntax to build GREP_OPTIONS more nicely (diff) | |
download | dotfiles-d184357767cfa266a6d8a32016f66e8e6bd1f17f.tar.gz dotfiles-d184357767cfa266a6d8a32016f66e8e6bd1f17f.zip |
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.
Diffstat (limited to 'sh/profile.d')
-rw-r--r-- | sh/profile.d/grep.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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' |