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

Fix deferred compdef between sourcing antigen and antigen apply #737

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

segevfiner
Copy link

Using some obscure Zsh syntax, check https://zsh.sourceforge.io/Doc/Release/Expansion.html#Parameter-Expansion-Flags for documentation about it.

Fixes #736

@segevfiner
Copy link
Author

This seems to only fix the no/stale cache case, when the cache is enabled, there is no compdef between sourcing antigen and apply, during applying the cache and after it is set to a no-op compdef and only set to the real compdef after the delayed compinit runs on the first prompt.

@segevfiner
Copy link
Author

Modified so it also fixes the caching case.

Avoids the for loop iterating an empty variable and calling `compdef` with no arguments
@mr-narender
Copy link

Can this be reviewed and unblocked for merge please. Impacted from #736

@segevfiner
Copy link
Author

Sadly this project seems unmaintained for quite some time and the original maintainers haven't appointed anyone new to take over.

@segevfiner
Copy link
Author

segevfiner commented Aug 25, 2022

If you want to manually patch your local antigen install: antigen-deferred-compdef-fix.patch.tar.gz

patch -p2 -i antigen-deferred-compdef-fix.patch

@donhector
Copy link

Thank you for your fix @segevfiner! It's a pity this project no longer seems maintained.

popstas added a commit to viasite-ansible/ansible-role-zsh that referenced this pull request May 26, 2024
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

Successfully merging this pull request may close these issues.

Any plugin or script using bashcompinit & complete to define completion won't work after sourcing antigen
3 participants