Red Hat Bugzilla – Bug 858248
[RFE]: scl command should have bash completion. PATCH included.
Last modified: 2013-07-02 19:57:02 EDT
Description of problem:
Utility scl is called on a regular basis and it is annoying to write everything by hand every time.
Bash completion should complete available scriptlets and collections automatically.
Created attachment 613999 [details]
Also Patch added :)
Hi Miroslav, thanks for the autocompletion script!
Just a few points I noticed while using it for autocompletion:
$ scl -l
$ scl enable <tab>
$ scl enable example123-
which doesn't seem to be correct. The correct result should be:
$ scl enable example
$ scl enable example123
after the next tab.
Could you please fix the completition script so that I can apply it upstream?
Ok, consulted that with Miroslav and did minor modifications. It is now comitted to upstream.
Created attachment 615376 [details]
Proposed patch v1.1
Nev version: Searching for collections in /etc/scl/prefixes now as proposed. Only installed collections should be listed this way.