diff --git a/macos/.config/shell-common/01_macos_brew.sh b/macos/.config/shell-common/01_macos_brew.sh new file mode 100644 index 0000000..757597a --- /dev/null +++ b/macos/.config/shell-common/01_macos_brew.sh @@ -0,0 +1,5 @@ +# Configure Homebrew environment +if [ -x /opt/homebrew/bin/brew ]; then + export HOMEBREW_NO_ENV_HINTS=1 + eval "$(/opt/homebrew/bin/brew shellenv)" +fi diff --git a/macos/.config/shell-common/99_macos.sh b/macos/.config/shell-common/99_macos.sh index ac341da..20c54b3 100644 --- a/macos/.config/shell-common/99_macos.sh +++ b/macos/.config/shell-common/99_macos.sh @@ -1,11 +1,5 @@ # shellcheck shell=bash -# Configure Homebrew environment -if [ -d /opt/homebrew ]; then - export HOMEBREW_NO_ENV_HINTS=1 - eval "$(/opt/homebrew/bin/brew shellenv)" -fi - # Flushes the DNS cache on macOS function flushdns() { if [[ $(uname) == "Darwin" ]]; then