diff options
-rw-r--r-- | sh/shrc.d/grep.sh | 2 |
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 "$@" |