From 749fafd3867f9310c50487f2b7d43c2caef99381 Mon Sep 17 00:00:00 2001 From: kKamUL Date: Wed, 6 May 2026 01:11:31 +0200 Subject: [PATCH] fix(brew): add /opt/homebrew/sbin to PATH --- plugins/brew/brew.plugin.zsh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/brew/brew.plugin.zsh b/plugins/brew/brew.plugin.zsh index 7d5db2068..b967bdd46 100644 --- a/plugins/brew/brew.plugin.zsh +++ b/plugins/brew/brew.plugin.zsh @@ -23,6 +23,13 @@ if (( ! $+commands[brew] )); then unset BREW_LOCATION fi +if [[ "$BREW_LOCATION" == "/opt/homebrew/bin/brew" && -d "/opt/homebrew/sbin" ]]; then + path=("/opt/homebrew/sbin" $path) + fi + + unset BREW_LOCATION +fi + if [[ -z "$HOMEBREW_PREFIX" ]]; then # Maintain compatibility with potential custom user profiles, where we had # previously relied on always sourcing shellenv. OMZ plugins should not rely