From c090bc9a0e81f651363d03ad9ad4e0af52fcd244 Mon Sep 17 00:00:00 2001 From: bretello Date: Fri, 14 Feb 2020 16:37:47 +0100 Subject: [PATCH] fix grc for homebrew installations --- aliases.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/aliases.sh b/aliases.sh index 33856bc..29902c0 100755 --- a/aliases.sh +++ b/aliases.sh @@ -74,10 +74,12 @@ alias git_sort_branches_by_date="git for-each-ref --sort=committerdate refs/head # grc: try to source the definitions file in /etc/grc.zsh (print a warning if it does not exist) -if [[ ! -f /etc/grc.zsh ]]; then - echo "Could not find /etc/grc.zsh, command colorization will not work. Check your grc configuration" 1>&2 -else +if [[ -f /etc/grc.zsh ]]; then source /etc/grc.zsh +elif [[ -f /usr/local/etc/grc.zsh ]] + source /usr/local/etc/grc.zsh +else + echo "Could not find /etc/grc.zsh, command colorization will not work. Check your grc configuration" 1>&2 fi # dotfiles user aliases