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 lildude committed Sep 24, 2015
1 parent 14b047d commit b361c37
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 b361c37

Please sign in to comment.