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

Remove execution and extension characters in the generated autocomplete script #1477

Merged

Conversation

andreaTP
Copy link
Contributor

First of all, thanks for the amazing project and all the effort in it @remkop !
This is a follow up from an issue experienced in the Keycloak project:
keycloak/keycloak#8875

Sorry for directly opening a PR instead of an Issue, but I do believe that this change is more self-explanatory in code 🙂

Rationale:

  • ./ breaks the autocomplete script on ZSH
  • .bash and .sh autocompletion extensions are always automatically generated

Sanitizing the internally used scriptName sounds like a first step in the right direction, wdyt?

@remkop remkop added theme: auto-completion An issue or change related to auto-completion type: enhancement ✨ labels Nov 24, 2021
@remkop remkop added this to the 4.6.3 milestone Nov 24, 2021
@remkop
Copy link
Owner

remkop commented Nov 24, 2021

@andreaTP Thank you for the contribution!
Looks good, I will merge this soon (looking at another completion-related PR first).

@remkop
Copy link
Owner

remkop commented Nov 25, 2021

Merged. Thank you for the contribution!

@andreaTP
Copy link
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: auto-completion An issue or change related to auto-completion type: enhancement ✨
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants