creationix/nvm — pull request #407 by zodiacg (2014-05-01 15:18:02+00:00)
Title: Fix the problem that messes up MANPATH. Issue #393

${MANPATH#*$NVM_DIR/*/man:} will simply delete everything before the nvm man path entry, which will cause problem when it is not the first entry.
The replacement is from the deactivate function.