[Fix #748] Set grep color for BSD and GNU
This commit is contained in:
parent
925b94b6e2
commit
ba351df9fb
1 changed files with 3 additions and 1 deletions
|
@ -104,7 +104,9 @@ alias sl='ls' # I often screw this up.
|
||||||
|
|
||||||
# Grep
|
# Grep
|
||||||
if zstyle -t ':prezto:module:utility:grep' color; then
|
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"
|
alias grep="$aliases[grep] --color=auto"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue