-
-
Notifications
You must be signed in to change notification settings - Fork 148
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
Idempotency: Enable the plugin to be source
d more than once in the same shell session
#283
Comments
I consider that a feature request. 🙂 Sure, it's possible, but it will require some work, since |
This would be very nice as sourcing Additionally, I seem to find that sourcing |
This would be very nice to have. In the meantime, do we have a workaround? |
@thompsonbrian Yes: Use |
It's there now. Enjoy! PS: If you enjoy using my software, please consider sponsoring me. 🙂 |
source
the plugin more than once in the same shell session
source
the plugin more than once in the same shell sessionsource
d more than once in the same shell session
zsh-autocomplete
version: 7f44a6dNot sure if this should be categorized as a feature request or bug report. It would be nice if the module was idempotent; so that it works correctly after being sourced multiple times (my scripts automatically resource everything when my .zshrc timestamp changes). Currently, simply sourcing it twice breaks completion (just doesn't display anything when typing commands) and history searching:
.autocomplete._main_complete:9: maximum nested function level reached; increase FUNCNEST?
.autocomplete._main_complete:unfunction:12: no such hash table element: compadd
.autocomplete._main_complete:unfunction:12: no such hash table element: compadd
...
autocomplete._main_complete:unfunction:12: no such hash table element: compadd
_main_complete:unfunction:20: no such hash table element: compadd
BTW; thanks for the great work and sharing your plugin.
The text was updated successfully, but these errors were encountered: