File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,16 @@ about-plugin 'node version manager configuration'
10
10
export NVM_DIR
11
11
12
12
# shellcheck disable=SC1091 # This loads nvm
13
- if _bash_it_homebrew_check && [[ -s " ${BASH_IT_HOMEBREW_PREFIX?} /nvm.sh" ]]; then
14
- source " ${BASH_IT_HOMEBREW_PREFIX?} /nvm.sh"
13
+ if _bash_it_homebrew_check && [[ -s " ${BASH_IT_HOMEBREW_PREFIX?} /opt/nvm/nvm.sh" ]]; then
14
+ mkdir -p " ${NVM_DIR} "
15
+ source " ${BASH_IT_HOMEBREW_PREFIX?} /opt/nvm/nvm.sh"
15
16
elif [[ -s " ${NVM_DIR} /nvm.sh" ]]; then
16
17
source " ${NVM_DIR} /nvm.sh"
17
18
fi
18
19
19
20
if ! _command_exists nvm; then
20
21
_log_warning " Bash-it no longer bundles the nvm script. Please install the latest version from
21
- https://github.com/creationix/nvm.git"
22
+ https://github.com/creationix/nvm.git or Homebrew "
22
23
_log_warning " if you want to use nvm. You can keep this plugin enabled once you have installed nvm."
23
24
return 1
24
25
fi
You can’t perform that action at this time.
0 commit comments