mirror of
				https://github.com/lukechilds/zsh-nvm.git
				synced 2025-10-30 14:46:28 +08:00 
			
		
		
		
	Add NVM_NO_USE option
This commit is contained in:
		
							parent
							
								
									ce7bc2a0a2
								
							
						
					
					
						commit
						e2e47a8c21
					
				| @ -38,8 +38,12 @@ _zsh_nvm_global_binaries() { | ||||
| 
 | ||||
| _zsh_nvm_load() { | ||||
| 
 | ||||
|   # Source nvm | ||||
|   # Source nvm (check if `nvm use` should be ran after load) | ||||
|   if [[ "$NVM_NO_USE" == true ]]; then | ||||
|     source "$NVM_DIR/nvm.sh" --no-use | ||||
|   else | ||||
|     source "$NVM_DIR/nvm.sh" | ||||
|   fi | ||||
| 
 | ||||
|   # Rename main nvm function | ||||
|   _zsh_nvm_rename_function nvm _zsh_nvm_nvm | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Luke Childs
						Luke Childs