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

Migrating from nvm to fnm, lost tab completions #901

Open
pastelmind opened this issue Jan 4, 2023 · 0 comments
Open

Migrating from nvm to fnm, lost tab completions #901

pastelmind opened this issue Jan 4, 2023 · 0 comments

Comments

@pastelmind
Copy link

This is not a problem caused by fnm, but nvm. However, I feel this should be mentioned here since many people are migrating from nvm to fnm, and some of them may trip on the same issue. Perhaps this fact could be mentioned in a FAQ or Troubleshooting section?

Nvm enables Zsh's tab completion (via autoload -U compinit) during initialization. This also enables built-in completions for many other tools, such as Git. I had been unknowingly relying on this behavior since I installed nvm.

When I removed nvm to use fnm, tab completion was disabled. I had to manually enable completions in my .zshrc to get it working again (and add fnm's own completions):

# ~/.zshrc

# I put my custom completions in ~/.zcompletions/ 
fpath+=~/.zcompletions
autoload -Uz compinit && compinit

# ...
@pastelmind pastelmind changed the title Migrating from nvm to fnm, lost completions Migrating from nvm to fnm, lost tab completions Jan 4, 2023
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