-
-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
complete:13: command not found: compdef #1707
Comments
I'm not familiar with realm. The proper (and only supported) install method is in the readme, namely, installing from this git repo. Does the same thing happen if you install it that way? It seems like the error is occurring inside |
I'm not sure how to reinstall it but I'm pretty sure it won't fix it, as using
nvm_url="https://raw.githubusercontent.com/creationix/nvm/v0.33.4/install.sh"
curl -s -o- "${nvm_url}" | bash So the only differences are that it installs using the |
Gotcha. It is a “bash completion” file, so it makes sense that it might not work on zsh - however, it seems to work in local testing. Is there anything about your install of zsh that might change this? |
So that error isn't printed for you when you reload the
I don't know, it's hard to figure out if and what might cause this. I do have |
ah, i could have sworn i had bash_completion in my zshrc file, but i didn't. When i run Running I'm certainly open to modifying this file so it can work in zsh, but since I'm not a zsh user, I'm not sure exactly how. Want to open a PR? |
I might try, but I can't guarantee. |
Any update on this? I just started using zsh because bash crashes intellij and I prefer using the terminal in the ide |
I personally didn't start working on it |
I commented out the last line ( |
@FallingSnow if you don't need autocompletion you can just remove the line from your profile file that sources bash_completion :-p |
Hi! the problem seems to be that
|
@pecigonzalo thanks, that’s great! Could you make a PR to do that in bash_completion, only for zsh, prior to compdef running? |
Resolves issue complete:13: command not found: compdef nvm-sh#1707
Made a PR based off of the solution of @pecigonzalo Just run the install script in zsh |
@ljharb Sorry I was unable to do so as I was traveling but someone seems to have taken care of it. |
macOS 10.13.2 (17C88)
nvm debug
output:nvm ls
output:nvm
? (e.g. install script in readme, homebrew):It was installed by Realm using:
curl -s https://raw.githubusercontent.com/realm/realm-object-server/master/install.sh | bash
After
nvm
installed, I ran:The following error was printed out:
Not throw an error.
.bashrc
,.bash_profile
,.zshrc
, etc) that modifies thePATH
?Yes, but it's not related.
The line that's causing this is:
https://github.com/creationix/nvm/blob/d34bb3247d689e926a36c3b6e26a3378b780a982/bash_completion#L97
It might be solved by using
compctl -K __nvm nvm
instead, maybe with an approach similar tofastlane
's, though I'm not sure.The text was updated successfully, but these errors were encountered: