|
|
@ -16,6 +16,9 @@ export NVM_LAZY_LOAD=true |
|
|
|
# Load zsh-nvm |
|
|
|
load_zsh_nvm |
|
|
|
|
|
|
|
# Check nvm is a lazy load function |
|
|
|
[[ $(which nvm) == *"_zsh_nvm_load"* ]] || die "nvm should be a lazy load function" |
|
|
|
|
|
|
|
# Check node is a lazy load function |
|
|
|
[[ $(command -v node) == "node" ]] || die "node should be a shell function" |
|
|
|
|
|
|
@ -25,6 +28,9 @@ load_zsh_nvm |
|
|
|
# Init lazy loader |
|
|
|
node --version || die "couldn't run lazy loader" |
|
|
|
|
|
|
|
# Check nvm is not a lazy load function |
|
|
|
[[ $(which nvm) != *"_zsh_nvm_load"* ]] || die "nvm should not be a lazy load function" |
|
|
|
|
|
|
|
# Check node is a binary |
|
|
|
[[ "$(command -v node)" == "$(nvm_version_path $node_version)/bin/node" ]] || die "node should now be a binary" |
|
|
|
|
|
|
|