Skip to content

Commit

Permalink
[Fix sorin-ionescu#748] Set grep color for BSD and GNU
Browse files Browse the repository at this point in the history
  • Loading branch information
sorin-ionescu authored and Rick Jones committed Mar 3, 2016
1 parent d70e7d2 commit 4a38224
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/utility/init.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4a38224

Please sign in to comment.