From 53d91e37167d4473fdb50930257c276525eda194 Mon Sep 17 00:00:00 2001 From: Ein Verne Date: Tue, 6 Nov 2018 15:42:06 +0800 Subject: [PATCH] Add nodejs env --- .zshrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.zshrc b/.zshrc index e1885f4..85745ef 100644 --- a/.zshrc +++ b/.zshrc @@ -30,6 +30,12 @@ if [[ -d ~/.rbenv/ ]]; then export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH" fi +if [[ -d ~/.nvm ]]; then + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm + [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion +fi + if [[ -d /usr/local/go ]]; then export PATH="$PATH:/usr/local/go/bin" export GOROOT="/usr/local/go"