diff --git a/system/grc.zsh b/system/grc.zsh index 23dbb3943d5..d014f8ebb79 100644 --- a/system/grc.zsh +++ b/system/grc.zsh @@ -1,5 +1,10 @@ -# GRC colorizes nifty unix tools all over the place -if (( $+commands[grc] )) && (( $+commands[brew] )) -then - source `brew --prefix`/etc/grc.bashrc +# GRC colorizes command output when available. +if (( $+commands[grc] )) && (( $+commands[brew] )); then + grc_prefix="$(brew --prefix)" + + if [[ -f "$grc_prefix/etc/grc.zsh" ]]; then + source "$grc_prefix/etc/grc.zsh" + fi + + unset grc_prefix fi