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

Does zsh-nvm support nvm options completion? #78

Open
brianrobt opened this issue Apr 30, 2021 · 0 comments
Open

Does zsh-nvm support nvm options completion? #78

brianrobt opened this issue Apr 30, 2021 · 0 comments

Comments

@brianrobt
Copy link

I love the plugin and appreciate the work you put in to make it possible.

Question

I'm not a filing a bug report but just asking a question or requesting a feature. Does zsh-nvm support options completion suggestions for nvm?

For example, with nvm install -- and then tab pressed I would expect the install options to be listed as suggestions:

--reinstall --lts ... etc.

Background

I am using OhMyZsh and have the plugin loaded along with the export of the bash profile as suggested in the README.

.zshrc. snippet:

# OhMyZsh stuff
...
export NVM_COMPLETION=true
plugins=(git zsh-nvm)
...
# Custom configurations

Does the export command above need to be in my .bashrc or .bash_profile instead of .zshrc? I was confused by the README about this:

nvm comes with a default bash_completion profile. If you want to enable it, you can do it by exporting the NVM_COMPLETION environment variable and setting it to true. It must be set before zsh-nvm is loaded.
For example, if you are using antigen, you would put the following in your .zshrc:

The above states to set NVM_COMPLETION in the .zshrc but it doesn't seem to do anything for me. Maybe the OMZ plugin just takes care of that by itself.

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

1 participant