openbsd grep fix - use ggrep or use no color
This commit is contained in:
parent
40cbc82ac3
commit
65cde185bb
1 changed files with 7 additions and 1 deletions
|
@ -48,7 +48,13 @@ fi
|
||||||
|
|
||||||
export GREP_COLOR='37;45' #BSD
|
export GREP_COLOR='37;45' #BSD
|
||||||
export GREP_COLORS="mt=${GREP_COLOR}" #GNU
|
export GREP_COLORS="mt=${GREP_COLOR}" #GNU
|
||||||
alias grep='grep --color=auto'
|
if [[ $OSTYPE == openbsd* ]]; then
|
||||||
|
if (( ${+commands[ggrep]} )); then
|
||||||
|
alias grep='ggrep --color=auto'
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
alias grep='grep --color=auto'
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in a new issue