mirror of
				https://github.com/lukechilds/zsh-nvm.git
				synced 2025-10-30 14:46:28 +08:00 
			
		
		
		
	Make lazy loading compatible with no use option
This commit is contained in:
		
							parent
							
								
									e2e47a8c21
								
							
						
					
					
						commit
						e379610cb9
					
				| @ -66,9 +66,14 @@ _zsh_nvm_load() { | ||||
| 
 | ||||
| _zsh_nvm_lazy_load() { | ||||
| 
 | ||||
|   # Get all global node module binaries (including node) | ||||
|   # Get all global node module binaries including node | ||||
|   # (only if NVM_NO_USE is off) | ||||
|   local global_binaries | ||||
|   global_binaries=($(_zsh_nvm_global_binaries)) | ||||
|   if [[ "$NVM_NO_USE" == true ]]; then | ||||
|     global_binaries=() | ||||
|   else | ||||
|     global_binaries=($(_zsh_nvm_global_binaries)) | ||||
|   fi | ||||
| 
 | ||||
|   # Add nvm | ||||
|   global_binaries+=('nvm') | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Luke Childs
						Luke Childs