[macos] Fix brew setup

This commit is contained in:
Andrew Williams
2026-01-07 17:31:50 +00:00
parent 5069d92f3f
commit 9754474e0d
2 changed files with 5 additions and 6 deletions

View File

@@ -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

View File

@@ -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