helm/dev/+js/env.zsh

10 lines
346 B
Bash
Raw Normal View History

2017-07-17 04:19:02 -07:00
export NVM_DIR="$HOME/.nvm"
2017-07-17 06:05:14 -07:00
# [[ -s "$NVM_DIR/nvm.sh" ]] && . "$NVM_DIR/nvm.sh"
# Sourcing nvm.sh adds a noticable slow-down on startup, so we scan for
# the current version's path ourselves.
# NOTE This assumes you use the `node` nvm alias, e.g. `nvm install node`
npmpaths=( $HOME/.nvm/versions/node/*/bin(On) )
path=("${npmpaths[1]}" $path)