diff --git a/bashrc b/bashrc index 3e040899a65a2b465b79e697862dddca266a6487..6a0df1770852a143df122535f0684748a4ae9dfd 100644 --- a/bashrc +++ b/bashrc @@ -87,6 +87,12 @@ if [ -x /usr/bin/dircolors ]; then alias egrep='egrep --color=auto' fi +# Enable color support on Mac +if [ "$(uname)" == "Darwin" ] && [ -x /usr/local/bin/dircolors ]; then + export CLICOLOR=1 + test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" +fi + # Alias definitions. # You may want to put all your additions into a separate file like # ~/.bash_aliases, instead of adding them here directly.