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

nerdctl.lima completions do not work on fish #2886

Open
RafalSkolasinski opened this issue Nov 9, 2024 · 3 comments
Open

nerdctl.lima completions do not work on fish #2886

RafalSkolasinski opened this issue Nov 9, 2024 · 3 comments

Comments

@RafalSkolasinski
Copy link

Description

Missing instructions (or I missed them, could be...) on how to enable fish completions for nerdctl.lima.
I tried

nerdctl.lima completion fish > ~/.config/fish/completions/nerdctl.lima.fish

but unfortunately with no success.... probably because completions are generated for nerdctl and not nerdctl.lima.

@afbjorklund
Copy link
Member

afbjorklund commented Nov 12, 2024

For the normal shells like bash, this is handled in the shell configuration itself and not in lima:

https://github.com/spf13/cobra/blob/main/site/content/completions/_index.md#aliases

There could be something similar available for fish

EDIT: seems to be called "wraps"

@afbjorklund
Copy link
Member

> nerdctl completion fish | source
> complete -c nerdctl.lima -w nerdctl

@RafalSkolasinski
Copy link
Author

Does not seem to work without having actual alias

alias nerdctl="nerdctl.lima"

and does not work very well as you type nerd<tab> and it first goes between nerdctl and nerdctl.lima...

I will keep trying...

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

2 participants