From ba351df9fb03a7c9e73ff7922d7a5cd7c843804a Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Mon, 8 Dec 2014 18:13:25 -0500 Subject: [PATCH] [Fix #748] Set grep color for BSD and GNU --- modules/utility/init.zsh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index c9ef94d..a32e5f3 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -104,7 +104,9 @@ alias sl='ls' # I often screw this up. # Grep if zstyle -t ':prezto:module:utility:grep' color; then - export GREP_COLOR='37;45' + export GREP_COLOR='37;45' # BSD. + export GREP_COLORS="mt=$GREP_COLOR" # GNU. + alias grep="$aliases[grep] --color=auto" fi