mirror of
				https://github.com/nvm-sh/nvm.git
				synced 2025-10-31 18:25:52 +08:00 
			
		
		
		
	Merge branch 'master' into #299
This commit is contained in:
		| @@ -25,11 +25,11 @@ Or if you have `git` installed, then just clone it: | ||||
|  | ||||
|     git clone https://github.com/creationix/nvm.git ~/.nvm | ||||
|  | ||||
| To activate nvm, you need to source it from your bash shell | ||||
| To activate nvm, you need to source it from your shell: | ||||
|  | ||||
|     source ~/.nvm/nvm.sh | ||||
|  | ||||
| I always add this line to my `~/.bashrc` or `~/.profile` file to have it automatically sourced upon login. | ||||
| I always add this line to my `~/.bashrc`, `~/.profile`, or `~/.zshrc` file to have it automatically sourced upon login. | ||||
| Often I also put in a line to use a specific version of node. | ||||
|  | ||||
| ## Usage | ||||
|   | ||||
							
								
								
									
										4
									
								
								nvm.sh
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								nvm.sh
									
									
									
									
									
								
							| @@ -407,6 +407,10 @@ nvm() { | ||||
|       else | ||||
|         PATH="$NVM_DIR/$VERSION/bin:$PATH" | ||||
|       fi | ||||
|       if [ -z "$MANPATH" ]; then | ||||
|         MANPATH=$(manpath) | ||||
|       fi | ||||
|       MANPATH=${MANPATH#*$NVM_DIR/*/man:} | ||||
|       if [[ $MANPATH == *$NVM_DIR/*/share/man* ]]; then | ||||
|         MANPATH=${MANPATH%$NVM_DIR/*/share/man*}$NVM_DIR/$VERSION/share/man${MANPATH#*$NVM_DIR/*/share/man} | ||||
|       else | ||||
|   | ||||
		Reference in New Issue
	
	Block a user