mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Fix for dumb terminals like Vim's.
This commit is contained in:
parent
3a444ea70a
commit
deab2ed376
8 changed files with 20 additions and 15 deletions
10
lib/grep.zsh
10
lib/grep.zsh
|
|
@ -1,6 +1,4 @@
|
|||
#
|
||||
# Color grep results
|
||||
# Examples: http://rubyurl.com/ZXv
|
||||
#
|
||||
export GREP_OPTIONS='--color=auto'
|
||||
export GREP_COLOR='1;32'
|
||||
if [[ "$DISABLE_COLOR" != "true" ]]; then
|
||||
[[ -z "$GREP_OPTIONS" ]] && export GREP_OPTIONS='--color=auto'
|
||||
[[ -z "$GREP_COLOR" ]] && export GREP_COLOR='1;32'
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue