Add nvmrc hook on chpwd
This commit is contained in:
		| @@ -1 +1,9 @@ | ||||
| # oh-my-zsh complains without a .zsh file in here | ||||
| # oh-my-zsh complains without a .zsh file in here | ||||
|  | ||||
| autoload -U add-zsh-hook | ||||
| load-nvmrc() { | ||||
|     if [[ -f .nvmrc && -r .nvmrc ]]; then | ||||
|           nvm use | ||||
|             fi | ||||
| } | ||||
| add-zsh-hook chpwd load-nvmrc | ||||
|   | ||||
		Reference in New Issue
	
	Block a user