From b054163475041be405d3b0d64d82ef5b833ea25a Mon Sep 17 00:00:00 2001 From: Inhji Date: Mon, 6 May 2019 11:21:06 +0200 Subject: [PATCH] add nvm --- .gitmodules | 3 +++ config/zshrc | 5 ++++- nvm | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) create mode 160000 nvm diff --git a/.gitmodules b/.gitmodules index fadee74..0616250 100644 --- a/.gitmodules +++ b/.gitmodules @@ -4,3 +4,6 @@ [submodule "oh-my-zsh"] path = oh-my-zsh url = https://github.com/robbyrussell/oh-my-zsh +[submodule "nvm"] + path = nvm + url = https://github.com/nvm-sh/nvm.git diff --git a/config/zshrc b/config/zshrc index 626ffe6..e2c2cba 100644 --- a/config/zshrc +++ b/config/zshrc @@ -2,6 +2,7 @@ export ZSH=$HOME/.dotfiles/oh-my-zsh export DOTFILES=$HOME/.dotfiles export PATH=$HOME/.local/bin:$PATH +export NVM_DIR=$HOME/.dotfiles/nvm # Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, @@ -14,7 +15,7 @@ ZSH_THEME="bureau" # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. -plugins=(z) +plugins=(z nvm) if [[ -n $SSH_CONNECTION ]]; then export EDITOR='vim' @@ -26,6 +27,8 @@ if [[ -d $HOME/.cargo ]]; then source $HOME/.cargo/env fi +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" --no-use # This loads nvm + source $ZSH/oh-my-zsh.sh alias r="source ~/.zshrc" diff --git a/nvm b/nvm new file mode 160000 index 0000000..45c1b84 --- /dev/null +++ b/nvm @@ -0,0 +1 @@ +Subproject commit 45c1b84794d446dd8274938c8259cbfd8b846e47