[utility] fix OpenBSD grep color
Use ggrep or use no color, also fixes #54. Closes #54, closes #55
This commit is contained in:
parent
5b077d4fad
commit
c9de5c5bd2
@ -48,7 +48,13 @@ fi
|
||||
|
||||
export GREP_COLOR='37;45' #BSD
|
||||
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
|
||||
|
||||
|
||||
#
|
||||
|
Reference in New Issue
Block a user