Bug 84720

Summary: RFE: Allow bash completion for disabled units
Product: systemd Reporter: drago01
Component: generalAssignee: systemd-bugs
Status: RESOLVED FIXED QA Contact: systemd-bugs
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description drago01 2014-10-06 14:46:53 UTC
<drago01> poettering: why don't we have bash completion for "systemctl start $something" where $something is not enabled?
<poettering> drago01: good question
<drago01> poettering: its not really a big deal but annoying and somehow arbitary
<poettering> drago01: we should fix that
<poettering> drago01: initially we didn't have a nice way to enumerate non-enabled services
<poettering> drago01: we now have that (and since a long time)
<poettering> drago01: hence we really should add that
<drago01> poettering: ok
<poettering> drago01: would be great to file a bug about this on fdo!
<drago01> poettering: ok let me do that
<poettering> just an RFE, asking to use "systemctl list-unit-files" in addition to "systemctl list-units" for the completion list
<poettering> (you want both, since for many cases l-u-f won't get you any service instances, only the templates...)
Comment 1 Thomas H.P. Andersen 2014-10-06 18:33:02 UTC
Should be fixed by Zbigniew already in 216. Is this with an earlier version?

http://cgit.freedesktop.org/systemd/systemd/commit/?id=c6a373a2634854
Comment 2 drago01 2014-10-06 18:38:30 UTC
Oh OK. Yeah I am still on F20 so running 208.
Comment 3 Zbigniew Jedrzejewski-Szmek 2014-10-06 18:55:31 UTC
I think I fucked up the commit, at least the part for __get_startable_units.
Comment 4 Zbigniew Jedrzejewski-Szmek 2014-10-15 01:37:01 UTC
Should be fixed with http://cgit.freedesktop.org/systemd/systemd/commit/?id=f29c77bc01.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.