mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-26 04:10:36 +08:00 
			
		
		
		
	[Fix] bash_completion: be robust when cd is overridden
				
					
				
			This commit is contained in:
		
				
					committed by
					
						 Jordan Harband
						Jordan Harband
					
				
			
			
				
	
			
			
			
						parent
						
							59532c74c6
						
					
				
				
					commit
					d91087c333
				
			| @@ -58,7 +58,7 @@ __nvm_aliases() { | |||||||
|   declare aliases |   declare aliases | ||||||
|   aliases="" |   aliases="" | ||||||
|   if [ -d "${NVM_DIR}/alias" ]; then |   if [ -d "${NVM_DIR}/alias" ]; then | ||||||
|     aliases="$(cd "${NVM_DIR}/alias" && command find "${PWD}" -type f | command sed "s:${PWD}/::")" |     aliases="$(command cd "${NVM_DIR}/alias" && command find "${PWD}" -type f | command sed "s:${PWD}/::")" | ||||||
|   fi |   fi | ||||||
|   echo "${aliases} node stable unstable iojs" |   echo "${aliases} node stable unstable iojs" | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user