Skip to content

Commit

Permalink
fix: load functions of nvm (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Nov 27, 2023
1 parent dad2dca commit 558238f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion internal/base.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ function nvm::internal::nvm::install {
}

function nvm::internal::nvm::load {
[ -e "${YARN_PATH}/bin" ] && export PATH="${PATH}:${YARN_PATH}/bin"

# shellcheck source=/dev/null
[ -s "${NVM_DIR}/nvm.sh" ] && source "${NVM_DIR}/nvm.sh"
}

function nvm::internal::packages::install {
Expand Down
2 changes: 1 addition & 1 deletion internal/main.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ nvm::internal::main::factory
nvm::internal::nvm::load

if ! core::exists curl; then core::install curl; fi
if ! command -v nvm > /dev/null ; then nvm::internal::nvm::install; fi
if ! core::exists nvm; then nvm::internal::nvm::install; fi

0 comments on commit 558238f

Please sign in to comment.