aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d/grep.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-24 11:06:36 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-24 11:06:36 +1200
commit0738be85e47b44592eaf42657659df6d24b6d7bf (patch)
treeedd2aeb972a56dc35f642bce5c168f2aabba6fe0 /sh/shrc.d/grep.sh
parentAdd a few more less(1) settings that seem good (diff)
downloaddotfiles-0738be85e47b44592eaf42657659df6d24b6d7bf.tar.gz
dotfiles-0738be85e47b44592eaf42657659df6d24b6d7bf.zip
Improve a comment
Diffstat (limited to 'sh/shrc.d/grep.sh')
-rw-r--r--sh/shrc.d/grep.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sh/shrc.d/grep.sh b/sh/shrc.d/grep.sh
index 2ccaed69..a52b6f90 100644
--- a/sh/shrc.d/grep.sh
+++ b/sh/shrc.d/grep.sh
@@ -9,7 +9,7 @@ grep() {
[ -e "$HOME"/.cache/grep/binary-files ] &&
set -- --binary-files=without-match "$@"
- # Add --color if the terminal has at least 8 colors
+ # Add --color=auto if the terminal has at least 8 colors
[ -e "$HOME"/.cache/grep/color ] &&
[ "$({ tput colors || tput Co ; } 2>/dev/null)" -ge 8 ] &&
set -- --color=auto "$@"