Lazily load nvm
This commit is contained in:
parent
46941f6111
commit
b97fc3ef72
21
.zshrc
21
.zshrc
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue