mirror of
				https://github.com/lukechilds/zsh-nvm.git
				synced 2025-10-30 14:46:28 +08:00 
			
		
		
		
	Run nvm use rather than nvm install on cd auto use
				
					
				
			This commit is contained in:
		
							parent
							
								
									b94341f233
								
							
						
					
					
						commit
						b53441a4c5
					
				| @ -158,7 +158,7 @@ _zsh_nvm_auto_use() { | |||||||
|     local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") |     local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") | ||||||
| 
 | 
 | ||||||
|     if [ "$nvmrc_node_version" != "N/A" ] && [ "$nvmrc_node_version" != "$node_version" ]; then |     if [ "$nvmrc_node_version" != "N/A" ] && [ "$nvmrc_node_version" != "$node_version" ]; then | ||||||
|       nvm install |       nvm use | ||||||
|     fi |     fi | ||||||
|   elif [ "$node_version" != "$(nvm version default)" ]; then |   elif [ "$node_version" != "$(nvm version default)" ]; then | ||||||
|     echo "Reverting to nvm default version" |     echo "Reverting to nvm default version" | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Luke Childs
						Luke Childs