From 6f3efe6bc7f81570693c5ac5ab79fe2fbd8555fe Mon Sep 17 00:00:00 2001 From: Michael Ochmann Date: Mon, 15 Jul 2024 17:53:09 +0200 Subject: [PATCH] extended `dircolors` lookup because homebrew now puts stuff under `/opt/homebrew` on Apple silicon Macs --- .bashrc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 0be6f0a..d36b12e 100644 --- a/.bashrc +++ b/.bashrc @@ -65,7 +65,7 @@ fi # COLORS ## enabling directory colors if possible -if [ -x /usr/bin/dircolors ] || [ -x /usr/local/bin/gdircolors ] +if [ -x /usr/bin/dircolors ] || [ -x /usr/local/bin/gdircolorsi ] || [ -x /opt/homebrew/bin/gdircolors ] then ## `dircolors` is called `gdircolors` if installed via homebrew if [[ "$OSTYPE" == "darwin"* ]] @@ -385,5 +385,8 @@ if [ -f "$HOME/.cargo/env" ] . "$HOME/.cargo/env" fi + +eval "$(anyenv init -)" + #set +x #exec 2>&3 3>&-