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

When NVM_DIR is a symlink, nvm_ls breaks #617

Open
ljharb opened this issue Jan 19, 2015 · 2 comments
Open

When NVM_DIR is a symlink, nvm_ls breaks #617

ljharb opened this issue Jan 19, 2015 · 2 comments
Labels
bugs Oh no, something's broken :-( pull request wanted This is a great way to contribute! Help us out :-D testing Stuff related to testing nvm itself.

Comments

@ljharb
Copy link
Member

ljharb commented Jan 19, 2015

Per some of the discussion on here: #616 (comment) as reported by @patrick-steele-idem

Solution is to add -L to the find command inside nvm_ls. The tricky part is writing a test for it :-)

@ljharb ljharb added the bugs Oh no, something's broken :-( label Jan 19, 2015
@ljharb ljharb added testing Stuff related to testing nvm itself. pull request wanted This is a great way to contribute! Help us out :-D labels Apr 5, 2015
@ljharb
Copy link
Member Author

ljharb commented Nov 28, 2015

This seems to also be causing some of the issues incorrectly reported on #855.

@CristianCantoro
Copy link
Contributor

Temporary workaround, in .zprofile (or .zshrc, if you prefer):

 # you can use the real path instead of the command f you prefer
export NVM_DIR="$(realpath $HOME/.nvm)"   
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugs Oh no, something's broken :-( pull request wanted This is a great way to contribute! Help us out :-D testing Stuff related to testing nvm itself.
Projects
None yet
Development

No branches or pull requests

2 participants