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

Suggestion: CBM - Give each kernel a unique number/code so it's easier to select instead of typing out full name #225

Open
bktan8 opened this issue Mar 23, 2020 · 6 comments

Comments

@bktan8
Copy link

bktan8 commented Mar 23, 2020

It would be nice to put a unique number/code in front of each kernel when I do a "list".
And then when I do a "set", I can just use the number/code instead of having to type up the full name.
Less chance for mistakes that way.

@ahkok
Copy link
Contributor

ahkok commented Mar 23, 2020

The list could change, making the numbers invalid. But yes, in a console, where you can't copy and paste, this would be a problem.

tab completion may be a good solution here.

@bryteise
Copy link
Member

set having tab completion would be reasonable.

@dorileo
Copy link
Contributor

dorileo commented Mar 23, 2020

we could hash the kernel name and support a short hash.

@puneetse
Copy link

The output of efibootmgr comes to mind. Maybe that style?

@dorileo
Copy link
Contributor

dorileo commented Mar 23, 2020

@puneetse that's exactly what @ahkok is trying to avoid. I agree with him, the list may change between calling list and set kernel.

@bryteise
Copy link
Member

Tab completion works for me in zsh btw. @lebensterben submitted a PR so I think this is fine as is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants