mirror of
				https://github.com/lukechilds/zsh-nvm.git
				synced 2025-10-30 14:46:28 +08:00 
			
		
		
		
	Make .nvmrc version command more concise
This commit is contained in:
		
							parent
							
								
									dc8635e714
								
							
						
					
					
						commit
						11b05b563d
					
				| @ -159,7 +159,7 @@ _zsh_nvm_auto_use() { | ||||
|   local nvmrc_path="$(nvm_find_nvmrc)" | ||||
| 
 | ||||
|   if [[ -n "$nvmrc_path" ]]; then | ||||
|     local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") | ||||
|     local nvmrc_node_version="$(nvm version $(cat "$nvmrc_path"))" | ||||
| 
 | ||||
|     if [[ "$nvmrc_node_version" != "N/A" ]]; then | ||||
|       [[ "$nvmrc_node_version" != "$node_version" ]] && nvm use && export NVM_AUTO_USE_ACTIVE=true | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Luke Childs
						Luke Childs