mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-09-25 11:14:51 +00:00
Merge branch 'master' into #299
This commit is contained in:
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