mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-11-01 02:35:51 +08:00 
			
		
		
		
	Added command to get current nvm environment.
This commit is contained in:
		
							
								
								
									
										3
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -436,6 +436,9 @@ nvm() { | |||||||
|         print_versions "`nvm_ls_remote $2`" |         print_versions "`nvm_ls_remote $2`" | ||||||
|         return |         return | ||||||
|     ;; |     ;; | ||||||
|  |     "current" ) | ||||||
|  |       echo -ne "current: \t"; nvm_version current | ||||||
|  |     ;; | ||||||
|     "alias" ) |     "alias" ) | ||||||
|       mkdir -p $NVM_DIR/alias |       mkdir -p $NVM_DIR/alias | ||||||
|       if [ $# -le 2 ]; then |       if [ $# -le 2 ]; then | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user