mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-10-31 23:11:13 +00:00
Load Homebrew installed NVM
This commit is contained in:
parent
55e4db9429
commit
b948e3630b
@ -6,9 +6,13 @@
|
|||||||
# Zeh Rizzatti <zehrizzatti@gmail.com>
|
# Zeh Rizzatti <zehrizzatti@gmail.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
# Load NVM into the shell session.
|
# Load manually installed NVM into the shell session.
|
||||||
if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
|
if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
|
||||||
source "$HOME/.nvm/nvm.sh"
|
source "$HOME/.nvm/nvm.sh"
|
||||||
|
|
||||||
|
# Load package manager installed NVM into the shell session.
|
||||||
|
elif (( $+commands[brew] )) && [[ -d "$(brew --prefix nvm 2>/dev/null)" ]]; then
|
||||||
|
source $(brew --prefix nvm)/nvm.sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Return if requirements are not found.
|
# Return if requirements are not found.
|
||||||
|
Loading…
Reference in New Issue
Block a user