[systemd-devel] [PATCH] add bash completion for systemctl --system

Michael Biebl mbiebl at gmail.com
Wed Nov 10 15:34:17 PST 2010


2010/11/9 Ran Benita <ran234 at gmail.com>:
> I've been playing recently with systemd on Arch, and had much fun. But
> soon, alas, my fingers started to ache from repeatedly writing
> systemctl restart some-long-service.service. So, I wrote a completion
> script. I figured other people may want to use it, so I prepared a
> patch against systemd-git (attached).

pretty cool!

A few comments:

- systemctl start <TAB> shows services which are marked inactive (dead), e.g.
# systemctl status wdm.service
wdm.service
	  Loaded: error
	  Active: inactive (dead)

I guess we should filter out such services from start

- systemctl status <TAB> also shows devices, which makes the
completion list rather long (~300) and less usable.
Maybe we should filter certain types of units here, like device or automount


Cheers,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?


More information about the systemd-devel mailing list