commit
8df2dd2ba8
4
nvm.sh
4
nvm.sh
|
@ -407,6 +407,10 @@ nvm() {
|
||||||
else
|
else
|
||||||
PATH="$NVM_DIR/$VERSION/bin:$PATH"
|
PATH="$NVM_DIR/$VERSION/bin:$PATH"
|
||||||
fi
|
fi
|
||||||
|
if [ -z "$MANPATH" ]; then
|
||||||
|
MANPATH=$(manpath)
|
||||||
|
fi
|
||||||
|
MANPATH=${MANPATH#*$NVM_DIR/*/man:}
|
||||||
if [[ $MANPATH == *$NVM_DIR/*/share/man* ]]; then
|
if [[ $MANPATH == *$NVM_DIR/*/share/man* ]]; then
|
||||||
MANPATH=${MANPATH%$NVM_DIR/*/share/man*}$NVM_DIR/$VERSION/share/man${MANPATH#*$NVM_DIR/*/share/man}
|
MANPATH=${MANPATH%$NVM_DIR/*/share/man*}$NVM_DIR/$VERSION/share/man${MANPATH#*$NVM_DIR/*/share/man}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue