nvm.plugin.zsh 275 B

12345678
  1. # Set NVM_DIR if it isn't already defined
  2. [[ -z "$NVM_DIR" ]] && export NVM_DIR="$HOME/.nvm"
  3. # Try to load nvm only if command not already available
  4. if ! type "nvm" &> /dev/null; then
  5. # Load nvm if it exists
  6. [[ -f "$NVM_DIR/nvm.sh" ]] && source "$NVM_DIR/nvm.sh"
  7. fi