Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MANPATH is not set when switching node versions #6

Closed
carter-thaxton opened this issue Aug 22, 2010 · 3 comments
Closed

MANPATH is not set when switching node versions #6

carter-thaxton opened this issue Aug 22, 2010 · 3 comments

Comments

@carter-thaxton
Copy link
Contributor

Nice script. I use this often...

I've added the following to my local nvm.sh file, right after "export PATH":

  if [[ $MANPATH == *$NVM_DIR/*/share/man* ]]; then
    MANPATH=${MANPATH%$NVM_DIR/*/share/man*}$NVM_DIR/$2/share/man${MANPATH#*$NVM_DIR/*/share/man}
  else
    MANPATH="$NVM_DIR/$2/share/man:$MANPATH"
  fi
  export MANPATH
@creationix
Copy link
Collaborator

Could you send a pull request with this, and code to remove MANPATH changes on deactivate. This is a nice feature.

@carter-thaxton
Copy link
Contributor Author

Just sent you a pull request. Glad you like the idea.

@creationix
Copy link
Collaborator

Closing since this was fixed a while back.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants