mirror of
				https://github.com/lukechilds/zsh-nvm.git
				synced 2025-10-30 14:46:28 +08:00 
			
		
		
		
	Add install script
This commit is contained in:
		
							parent
							
								
									7c8449e0e8
								
							
						
					
					
						commit
						4f10e63798
					
				| @ -19,3 +19,9 @@ _zsh_nvm_latest_release_tag() { | |||||||
|     grep '"tag_name":' |                                                        # Get tag line |     grep '"tag_name":' |                                                        # Get tag line | ||||||
|     sed -E 's/.*"([^"]+)".*/\1/'                                                # Pluck JSON value |     sed -E 's/.*"([^"]+)".*/\1/'                                                # Pluck JSON value | ||||||
| } | } | ||||||
|  | 
 | ||||||
|  | _zsh_nvm_install() { | ||||||
|  |   git clone https://github.com/creationix/nvm.git "$NVM_DIR" | ||||||
|  |   cd "$NVM_DIR" | ||||||
|  |   git checkout --quiet "$(_zsh_nvm_latest_release_tag)" | ||||||
|  | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Luke Childs
						Luke Childs