-
Notifications
You must be signed in to change notification settings - Fork 85
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
Zsh completion for bpftool #83
Comments
Please give me more details on this issue. I want to see if I can work on it. |
Sure, we've got this file for bash completion, I'd like to have something equivalent for Zsh completion. I spent a good amount of time on the bash completion file, and I think it works quite well: it's able to complete with subcommands names, but also with the following parameter names for each subcommands, and with the arguments for some of these parameters. For example, it can suggest actual BPF program IDs or names when relevant. Eventually, I'd like the Zsh completion to offer the same thing, although it doesn't have to be fully on par from the beginning. I'd recommend getting familiar with bpftool commands' syntax and playing around with the bash completion, to see how it works. Let me know if you need more specific details. |
Yeah, please tell me how exactly I can start contributing and what features you need in this initial version exactly. Like I saw that this is just a mirror and it's actually on the source tree. Haven't really contributed to stuff like this before. Would be grateful for any guides you can send my way. |
So even though bpftool and its bash completion are hosted in the kernel repository, I don't expect the Zsh completion to go there, at least not unless we reach feature parity with the bash completion. Several reasons for that:
So we'll keep it in the mirror only I think.
There's no established minimal feature set. The more, the better, to be honest :). But let's say at the very least, completion for top-level subcommands name must work, and completion for the most basic commands - program, map, link list/dump/edit, for example - should be there, too. |
Got that. Starting work on this. This will be a normal GitHub PR in that case, I assume then ? |
Yes please! |
We have bash completion, but many users use Zsh nowadays.
Some other shells are in use as well (fish, ...), and could be candidates, although I'm not familiar with other completion systems.
Not sure if these would make it to the Linux repo, but alternatively we could host them on this mirror at least.
The text was updated successfully, but these errors were encountered: