-
Notifications
You must be signed in to change notification settings - Fork 1
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
zsh autocomplete #1
Comments
Awesome! Thanks! I'll get some ppl from IRC to put eyeballs on this. |
I switched to Bash but didn't have the env variable in either one. What is it normally? |
zsh code of interest:
vs bash:
where |
Yeah, that sites pre tags have hidden overflows, so fair warning. |
COMP_LINE gets evaluated when you hit So then I switched to trying to get a zsh plugin (specifically oh-my-zsh) to work. But I've never written one so it's trial-by-fire. 🔥 😄 |
Unassigning so people might be encouraged to help on this more. |
I saw the note about making a PR to confirm that it works for zsh users. I couldn't get it to work so I'm opening an issue to help document and assist. :)
I think the problem is that zsh doesn't have COMP_LINE. So an exception is thrown on a nil value. Manually setting COMP_LINE fixes it but the actual value obviously needs to be dynamic for it to be useful.
I then tried to get the bash compatibility options to work with zsh but my initial attempts have failed. This is in the context of oh-my-zsh. So maybe a vanilla zsh user would have more luck with their .zshrc config. I think a good solution would be to write a oh-my-zsh plugin and change minitest/complete.rb to handle whatever environment differences are between the two shells. But I haven't figured this out yet. I took at stab at a zsh plugin but I need to work on it some more.
I switched to bash temporarily to get the happy path working and developed against that state. Of course it works. :) So, this is definitely zsh related. I'm hoping I can contribute something more substantial.
The text was updated successfully, but these errors were encountered: