Created attachment 357541 [details]
initial bash completion
It would be nice to have a bash completion like:
yum [TAB] -> see the possibilities like grouplist install and so on...
Attached is a initial patch for that.
What's your opinion towards this?
Is it worth to work on this? ;-)
that's fine - but it might be better assigned to bash-completion than to yum.
I believe it would be better to let the yum maintainers maintain the bash-completion -> I send this here.
In bash-completion is already a yum completion...
(I just didn't notice it :-( )
-> Suicide ;-)
Yep, bash-completion indeed contains yum completion. But my (and other upstream bash-completion folks') general opinion is that it'd be better if completions were shipped by packages that contain the completed commands for two simple reasons: it's generally more likely that the completions were kept up to date that way, and the completions would only have to correspond to the software being shipped and there would be no need to have them working with old versions. Let me know if you're interested in shipping the completion with yum.
(In reply to comment #3)
> and the completions would only have to correspond to the
> software being shipped and there would be no need to have them working with old
...and when we update yum completion in bash-completion to work with new stuff added in new yum versions, those completions will then appear to whatever version of yum is installed, also old ones.
> Let me know if you're interested in shipping the completion with yum.
...and yes, I volunteer to maintain it in yum git if that makes a difference.
Thanks - you're right putting it in yum makes sense - though I'm a little concerned how well it will work with plugins which add commands. But if you've got a version. Send a patch to the yum-devel list and we can work on getting you setup to maintain it from there.