Improve autocomplete migration documentation #553
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Upon upgrading abra, now when trying to use tab to autocomplete, I get this error:
Error: unknown flag: --generate-bash-completion
abra version 0.10.1-beta-2fbef41
@marlon what command did you run exactly to run into that error?
As noted in the migration docs, the autocomplete commands / flags have changed.
When you run
abra autocomplete -h
, you should see the necessary commands forbash
?Yes, I should have clarified I'm running zsh 5.9 and I ran the following commands per the migration docs:
Then I started a new terminal and typed:
abra ap<tab>
The output looks like
When I check the contents of ~/.zshrc it does contain the autoload command, and when I
cat "${fpath[1]}/_abra"
it shows a script for zsh completion.@marlon do you perhaps still have the old pre v0.10.x autocomplete config lying around?
Yes, seems the problem was that I had this pre v0.10.x line in my
.zshrc
file:source /etc/zsh/completion.d/abra
Removing that line fixed the error.
Autocomplete fails: "unknown flag: --generate-bash-completion"to Improve autocomplete migration documentation