mirror of
				https://github.com/lukechilds/zsh-nvm.git
				synced 2025-10-30 14:46:28 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			329 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			329 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
source ../common.sh
 | 
						|
 | 
						|
# We don't need to actually load nvm for this test
 | 
						|
export ZSH_NVM_NO_LOAD=true
 | 
						|
 | 
						|
# Check ZSH_NVM_DIR isn't already set
 | 
						|
[[ -z ${ZSH_NVM_DIR+x} ]] || die "ZSH_NVM_DIR already set"
 | 
						|
 | 
						|
# Load zsh-nvm
 | 
						|
load_zsh_nvm
 | 
						|
 | 
						|
# Check ZSH_NVM_DIR is now set
 | 
						|
[[ ! -z ${ZSH_NVM_DIR+x} ]] || die "ZSH_NVM_DIR wasn't set"
 |