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

Consider not installing completions for nonexistent commands #925

Open
scop opened this issue Apr 12, 2023 · 0 comments
Open

Consider not installing completions for nonexistent commands #925

scop opened this issue Apr 12, 2023 · 0 comments

Comments

@scop
Copy link
Owner

scop commented Apr 12, 2023

We might consider stopping here if the command is not found. That would make things simpler for completions, they would not have to take into account being invoked for nonexistent things. Then again, it would break a flow where a completion is installed for a nonexistent command, then the command is made available. But I don't know if this is something we should support.
(The existence check should be more than type -P if we want to go this way in order to not break ability to install completions e.g. for aliases.)

Originally posted by @scop in #924 (comment)

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

No branches or pull requests

1 participant