Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
kareefardi committed May 11, 2022
2 parents 595aceb + 8f56a8b commit 6374096
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 83 deletions.
6 changes: 0 additions & 6 deletions plugins/boot2docker/README.md

This file was deleted.

73 changes: 0 additions & 73 deletions plugins/boot2docker/_boot2docker

This file was deleted.

10 changes: 6 additions & 4 deletions plugins/nvm/nvm.plugin.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,24 @@ if [[ -z "$NVM_DIR" ]]; then
fi

# Don't try to load nvm if command already available
which nvm &> /dev/null && return
# Note: nvm is a function so we need to use `which`
! which nvm &>/dev/null || return

if [[ -f "$NVM_DIR/nvm.sh" ]]; then
# Load nvm if it exists in $NVM_DIR
source "$NVM_DIR/nvm.sh" ${NVM_LAZY+"--no-use"}
else
elif (( $+commands[brew] )); then
# Otherwise try to load nvm installed via Homebrew
# User can set this if they have an unusual Homebrew setup
NVM_HOMEBREW="${NVM_HOMEBREW:-/usr/local/opt/nvm}"
NVM_HOMEBREW="${NVM_HOMEBREW:-${HOMEBREW_PREFIX:-$(brew --prefix)}/opt/nvm}"
# Load nvm from Homebrew location if it exists
if [[ -f "$NVM_HOMEBREW/nvm.sh" ]]; then
source "$NVM_HOMEBREW/nvm.sh" ${NVM_LAZY+"--no-use"}
else
# Exit the plugin if we couldn't find nvm
return
fi
else
return
fi

# Call nvm when first using node, npm or yarn
Expand Down

0 comments on commit 6374096

Please sign in to comment.