mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-22 15:53:22 +01:00
fix(nvm): support path from Apple Silicon Homebrew (#10875)
This commit is contained in:
parent
a26d72baa2
commit
a879ff1515
@ -16,7 +16,7 @@ if [[ -f "$NVM_DIR/nvm.sh" ]]; then
|
|||||||
else
|
else
|
||||||
# Otherwise try to load nvm installed via Homebrew
|
# Otherwise try to load nvm installed via Homebrew
|
||||||
# User can set this if they have an unusual Homebrew setup
|
# User can set this if they have an unusual Homebrew setup
|
||||||
NVM_HOMEBREW="${NVM_HOMEBREW:-/usr/local/opt/nvm}"
|
NVM_HOMEBREW="${NVM_HOMEBREW:-${HOMEBREW_PREFIX:-$(brew --prefix)}/opt/nvm}"
|
||||||
# Load nvm from Homebrew location if it exists
|
# Load nvm from Homebrew location if it exists
|
||||||
if [[ -f "$NVM_HOMEBREW/nvm.sh" ]]; then
|
if [[ -f "$NVM_HOMEBREW/nvm.sh" ]]; then
|
||||||
source "$NVM_HOMEBREW/nvm.sh" ${NVM_LAZY+"--no-use"}
|
source "$NVM_HOMEBREW/nvm.sh" ${NVM_LAZY+"--no-use"}
|
||||||
|
Loading…
Reference in New Issue
Block a user