aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-06-24 18:10:44 +1200
committerTom Ryder <tom@sanctum.geek.nz>2015-06-24 18:10:44 +1200
commitd184357767cfa266a6d8a32016f66e8e6bd1f17f (patch)
tree973f67cd0b5dbead3bcd9020820b6b5952577a7a /sh
parentUse Bashy syntax to build GREP_OPTIONS more nicely (diff)
downloaddotfiles-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')
-rw-r--r--sh/profile.d/grep.sh2
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'