Skip to content

Commit

Permalink
speed up new shell instances
Browse files Browse the repository at this point in the history
  • Loading branch information
atomantic authored Oct 8, 2019
1 parent 74c6031 commit aa0c172
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions homedir/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,12 @@ plugins=(colorize compleat dirpersist autojump git gulp history cp)

source $ZSH/oh-my-zsh.sh

source /usr/local/opt/nvm/nvm.sh
source /usr/local/opt/nvm/nvm.sh --no-use

autoload -U add-zsh-hook
load-nvmrc() {
if [[ -f .nvmrc && -r .nvmrc ]]; then
nvm use &> /dev/null
elif [[ $(nvm version) != $(nvm version default) ]]; then
nvm use default &> /dev/null
fi
}
add-zsh-hook chpwd load-nvmrc
Expand Down

0 comments on commit aa0c172

Please sign in to comment.