From 9754474e0d1ecf979befc3f3ca8a9d9bc54de0c9 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 7 Jan 2026 17:31:50 +0000 Subject: [PATCH] [macos] Fix brew setup --- macos/.config/shell-common/01_macos_brew.sh | 5 +++++ macos/.config/shell-common/99_macos.sh | 6 ------ 2 files changed, 5 insertions(+), 6 deletions(-) create mode 100644 macos/.config/shell-common/01_macos_brew.sh 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