mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-06-05 05:03:16 +02:00
fix(brew): add /opt/homebrew/sbin to PATH
This commit is contained in:
parent
e64912e0c1
commit
749fafd386
1 changed files with 7 additions and 0 deletions
|
|
@ -23,6 +23,13 @@ if (( ! $+commands[brew] )); then
|
||||||
unset BREW_LOCATION
|
unset BREW_LOCATION
|
||||||
fi
|
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
|
if [[ -z "$HOMEBREW_PREFIX" ]]; then
|
||||||
# Maintain compatibility with potential custom user profiles, where we had
|
# Maintain compatibility with potential custom user profiles, where we had
|
||||||
# previously relied on always sourcing shellenv. OMZ plugins should not rely
|
# previously relied on always sourcing shellenv. OMZ plugins should not rely
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue