Lazily load nvm

This commit is contained in:
Shadowfacts 2016-07-18 19:15:32 -04:00
parent 46941f6111
commit b97fc3ef72
1 changed files with 20 additions and 1 deletions

21
.zshrc
View File

@ -20,8 +20,27 @@ alias pip=pip3
alias oldruby="/usr/local/bin/ruby" alias oldruby="/usr/local/bin/ruby"
alias ruby="/usr/local/Cellar/ruby/2.3.0/bin/ruby" alias ruby="/usr/local/Cellar/ruby/2.3.0/bin/ruby"
# lazily load nvm
export NVM_DIR=~/.nvm export NVM_DIR=~/.nvm
. $(brew --prefix nvm)/nvm.shi #. $(brew --prefix nvm)/nvm.sh
nvm() {
unset -f nvm
. $(brew --prefix nvm)/nvm.sh
nvm "$@"
}
node() {
unset -f node
. $(brew --prefix nvm)/nvm.sh
node "$@"
}
npm() {
unset -f npm
. $(brew --prefix nvm)/nvm.sh
npm "$@"
}
# default file openings # default file openings
alias -s ipr=open alias -s ipr=open