mirror of
https://github.com/dcarrillo/prezto.git
synced 2024-12-22 08:08:00 +00:00
[Fix #777] Check for nvm or node
This commit is contained in:
parent
933c61b8f1
commit
1292587f95
@ -6,6 +6,11 @@
|
||||
# Zeh Rizzatti <zehrizzatti@gmail.com>
|
||||
#
|
||||
|
||||
# Return if requirements are not found.
|
||||
if (( ! $+commands[nvm] || ! $+commands[node] )); then
|
||||
return 1
|
||||
fi
|
||||
|
||||
# Load manually installed NVM into the shell session.
|
||||
if [[ -s "$HOME/.nvm/nvm.sh" ]]; then
|
||||
source "$HOME/.nvm/nvm.sh"
|
||||
|
Loading…
Reference in New Issue
Block a user