Bug 84720 - RFE: Allow bash completion for disabled units
Summary: RFE: Allow bash completion for disabled units
Status: RESOLVED FIXED
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: systemd-bugs
QA Contact: systemd-bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-06 14:46 UTC by drago01
Modified: 2014-10-15 01:37 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

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.