plugin/nvm: fix homebrew path
parent
2e143cf3ff
commit
5dc665847d
|
|
@ -10,15 +10,16 @@ about-plugin 'node version manager configuration'
|
||||||
export NVM_DIR
|
export NVM_DIR
|
||||||
|
|
||||||
# shellcheck disable=SC1091 # This loads nvm
|
# shellcheck disable=SC1091 # This loads nvm
|
||||||
if _bash_it_homebrew_check && [[ -s "${BASH_IT_HOMEBREW_PREFIX?}/nvm.sh" ]]; then
|
if _bash_it_homebrew_check && [[ -s "${BASH_IT_HOMEBREW_PREFIX?}/opt/nvm/nvm.sh" ]]; then
|
||||||
source "${BASH_IT_HOMEBREW_PREFIX?}/nvm.sh"
|
mkdir -p "${NVM_DIR}"
|
||||||
|
source "${BASH_IT_HOMEBREW_PREFIX?}/opt/nvm/nvm.sh"
|
||||||
elif [[ -s "${NVM_DIR}/nvm.sh" ]]; then
|
elif [[ -s "${NVM_DIR}/nvm.sh" ]]; then
|
||||||
source "${NVM_DIR}/nvm.sh"
|
source "${NVM_DIR}/nvm.sh"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! _command_exists nvm; then
|
if ! _command_exists nvm; then
|
||||||
_log_warning "Bash-it no longer bundles the nvm script. Please install the latest version from
|
_log_warning "Bash-it no longer bundles the nvm script. Please install the latest version from
|
||||||
https://github.com/creationix/nvm.git"
|
https://github.com/creationix/nvm.git or Homebrew"
|
||||||
_log_warning "if you want to use nvm. You can keep this plugin enabled once you have installed nvm."
|
_log_warning "if you want to use nvm. You can keep this plugin enabled once you have installed nvm."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue