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

Use nvm_prefix variable #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ImperadorSid
Copy link

When NVM is installed in non-default location (like ~/.local/nvm), completions doesn't work. This fix will ensure that completions will source the nvm.sh file in correct directory.

@@ -3,15 +3,15 @@ set commands help install uninstall use run current ls ls-remote version \

function __nvm_complete_ls_remote
if not test "$__nvm_ls_remote"
set -g __nvm_ls_remote (fenv source ~/.nvm/nvm.sh\; nvm_ls_remote\; nvm_ls_remote_iojs)
set -g __nvm_ls_remote (fenv source $nvm_prefix/nvm.sh\; nvm_ls_remote\; nvm_ls_remote_iojs)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what will happen if $nvm_prefix is not set?

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

Successfully merging this pull request may close these issues.

None yet

2 participants