Skip to content
Myr

Ensure that a system has `manpath` before invoking it.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Closes #531, fixes #557.

authored by Jordan Harband · committed by Jordan Harband · parent 4b6075e · Browse files · 1 file+9 added−7 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+9 added−7 removed

  • other:+9 added−7 removed

1 file+9 added−7 removed

modified:nvm.sh+9 added-7 removed
834 unmodified lines
835 # Strip other version from PATH836 PATH=`nvm_strip_path "$PATH" "/bin"`837 # Prepend current version838 PATH=`nvm_prepend_path "$PATH" "$NVM_VERSION_DIR/bin"`839 if nvm_has manpath; then839 if [ -z "$MANPATH" ]; then840 MANPATH=$(manpath)840 if [ -z "$MANPATH" ]; then841 MANPATH=$(manpath)842 fi843 # Strip other version from MANPATH844 MANPATH=`nvm_strip_path "$MANPATH" "/share/man"`845 # Prepend current version846 MANPATH=`nvm_prepend_path "$MANPATH" "$NVM_VERSION_DIR/share/man"`847 export MANPATH848 fi842 # Strip other version from MANPATH843 MANPATH=`nvm_strip_path "$MANPATH" "/share/man"`844 # Prepend current version845 MANPATH=`nvm_prepend_path "$MANPATH" "$NVM_VERSION_DIR/share/man"`849 # Strip other version from NODE_PATH850 NODE_PATH=`nvm_strip_path "$NODE_PATH" "/lib/node_modules"`851 # Prepend current version852 NODE_PATH=`nvm_prepend_path "$NODE_PATH" "$NVM_VERSION_DIR/lib/node_modules"`853 export PATH854 hash -r852 export MANPATH855 export NODE_PATH856 export NVM_PATH="$NVM_VERSION_DIR/lib/node"857 export NVM_BIN="$NVM_VERSION_DIR/bin"858 if [ "$NVM_SYMLINK_CURRENT" = true ]; then
202 unmodified lines