diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index a89047a..9fb20aa 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -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 #