extended `dircolors` lookup

because homebrew now puts stuff under `/opt/homebrew` on Apple silicon
Macs
master
Michael Ochmann 11 months ago
parent a806bd1aaa
commit 6f3efe6bc7
  1. 5
      .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>&-

Loading…
Cancel
Save