Age | Commit message (Collapse) | Author | |
---|---|---|---|
2011-11-02 | bash-completion: rename file since it is no longer for systemctl only | Ran Benita | |
2011-11-02 | bash-completion: add completions for systemd-loginctl | Ran Benita | |
This script is straightforward and should give proper completions for all of systemd-loginctl's verbs. | |||
2011-11-02 | bash-completion: update with new verbs and arguments | Ran Benita | |
Adds arguments --root= --runtime --no-legend. Adds verbs link mask unmask reenable list-unit-files. Also uses list-unit-files to make nicer enable and disable completions. Rebased due to changes in systemctl. | |||
2011-10-19 | systemctl-completion: always invoke with --no-legend | Dave Reisner | |
In the case of completion for the 'restart' verb, passing the invalid unit name (the colums header) causes completion to cease functioning entirely, with the error: Failed to issue method call: Unit name UNIT is not valid. This adds a small wrapper function for systemctl which can have common options added to it. | |||
2011-08-01 | bash: Allow to restart already started service. | Frederic Crozat | |
Allow to restart all services, not only inactive one. https://bugzilla.novell.com/show_bug.cgi?id=704782 | |||
2011-06-20 | bash: Add host, privileged, and no-pager bash option completions. | Ville Skyttä | |
2011-04-10 | bash: fix typo | Brendan Jones | |
There's a typo in the bash completion script which disables isolate target completion. https://bugzilla.redhat.com/show_bug.cgi?id=694321 | |||
2011-03-29 | exec: drop process group kill mode since it has little use and confuses the user | Lennart Poettering | |
2011-02-16 | systemctl: introduce --ignore-dependencies | Lennart Poettering | |
2011-02-16 | systemctl: introduce --failed to show only failed services | Lennart Poettering | |
2010-11-15 | drop support for MANAGER_SESSION, introduce MANAGER_USER instead | Lennart Poettering | |
2010-11-10 | add bash completion for systemctl --system | Ran Benita | |
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). There are some notes/disclaimers, however: - It requires bash>=4.0, sed, grep and awk. A bash-completion package is not strictly needed; sourcing the file is enough. - It wouldn't work properly with --session, as I had no way to test it. - It uses the output of systemctl list-units directly when that's enough, but also runs systemctl show when completing on some verbs (for example, to check for AllowIsolate=yes). This /may/ be somewhat slow once there are many units, since it calls a dbus method on each one. Is there a faster way to have that information? - The code is perhaps a bit long and messy; honestly, I blame the tool ;) One way to improve on the situation is to integrate some completion code in systemctl itself, the way e.g. gdbus, gsettings and django do it. This will allow for finer grained and faster completions, and it won't be necessary to keep the verb/option tables in sync with some other file. But it does mean adding all of this code in C. If this is acceptable, I'll try to have a go at it. Finally, a couple of completion tips I run into: - If you alias systemctl to, say, sctl, you get completions on that too by running to following command: complete -F _systemctl sctl - Add the following line to your .inputrc, to have the completion show after only a single tab press: set show-all-if-ambiguous on It makes the shell quite more pleasant. Hope it's good enough! Ran |