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 # COLORS
## enabling directory colors if possible ## 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 then
## `dircolors` is called `gdircolors` if installed via homebrew ## `dircolors` is called `gdircolors` if installed via homebrew
if [[ "$OSTYPE" == "darwin"* ]] if [[ "$OSTYPE" == "darwin"* ]]
@ -385,5 +385,8 @@ if [ -f "$HOME/.cargo/env" ]
. "$HOME/.cargo/env" . "$HOME/.cargo/env"
fi fi
eval "$(anyenv init -)"
#set +x #set +x
#exec 2>&3 3>&- #exec 2>&3 3>&-

Loading…
Cancel
Save