summaryrefslogtreecommitdiff
path: root/shell-completion/bash
AgeCommit message (Collapse)Author
2014-10-14shell-completion: fix completion of inactive unitsZbigniew Jędrzejewski-Szmek
Units which not loaded were not proposed properly. OTOH, we should filter units from get-unit-files by their state if they are currently loaded. Bring zsh completions in line with bash completion, the same logic should be used in both implementations. https://bugzilla.redhat.com/show_bug.cgi?id=1024379 https://bugzilla.redhat.com/show_bug.cgi?id=790768 https://bugs.freedesktop.org/show_bug.cgi?id=84720
2014-08-29completion: filter templates from restartable unitsDave Reisner
Since c6a373a2634854, we might encounter unit templates via the 'list-units' verb. These aren't restartable (and we throw errors), so make sure they're filtered out of the completion options. fixes downstream bug: https://bugs.archlinux.org/task/41719
2014-07-27shell-completion: prevent mangling unit names (bash)Eric Cook
This fixes the issue noted by Zbigniew in most cases. if a unit's name is enclosed in single quotes completion still will not happen after the first `\'. https://bugs.freedesktop.org/show_bug.cgi?id=78388
2014-07-26bash-completion: use list-unit-files to get "all" unitsZbigniew Jędrzejewski-Szmek
I think that it is better to return good results slightly more slowly, than partial quickly. Also reading from disk seems fast enough. Even the delay on first try with completely cold cache is acceptable. This is just for bash, 'cause zsh was already doing this. https://bugzilla.redhat.com/show_bug.cgi?id=790768
2014-07-21shell-completion: systemd-analyze verify, systemctl linkZbigniew Jędrzejewski-Szmek
Some zsh completion helpers were not installed, so completion was broken. Add systemd-analyze verify. Make systemctl link complete only unit names.
2014-07-19bash-completion: -p option for journalctlZbigniew Jędrzejewski-Szmek
2014-07-15shell-completion: restore completion for -pZbigniew Jędrzejewski-Szmek
It was broken since systemd was moved out of /bin. For zsh it was never there.
2014-07-11shell-completion: add hostnamectl set-deploymentZbigniew Jędrzejewski-Szmek
2014-07-11shell-completion,man: beef up chassis completions and descriptionZbigniew Jędrzejewski-Szmek
Parameters to hostnamectl command are not optional and should not be marked as such in the man page.
2014-06-19coredump: coredumpctl is so useful now, make it a first-class citizenLennart Poettering
Drop the "systemd-" prefix, renaming it from "systemd-coredumpctl" to "coredumpctl".
2014-04-13bash completion: fix __get_startable_unitsDan Kilman
2014-04-11bash completion: add -i/--image to nspawnThomas Hindoe Paaboel Andersen
2014-04-04bash_completion: busctl - add support for --user modeKay Sievers
2014-04-03bash completion: Add -r/--recursive to systemctlThomas Hindoe Paaboel Andersen
2014-03-25systemctl: --kill-mode is long long gone, don't mention it in the man pageLennart Poettering
2014-03-17systemd-run: extend bash completionThomas Hindoe Paaboel Andersen
--system -H --host -M --machine --service-type (options: simple forking oneshot dbus notify idle) --uid --gid --nice --setenv -p --property (options read from bus_append_unit_property_assignment)
2014-03-04add bash completion for systemd-catThomas Hindoe Paaboel Andersen
2014-03-03add bash completion for systemd-detect-virtThomas Hindoe Paaboel Andersen
2014-03-03update bash completion for systemd-analyzeThomas Hindoe Paaboel Andersen
2014-03-02add bash completion for systemd-cgtopThomas Hindoe Paaboel Andersen
2014-03-01add bash completion for systemd-cglsThomas Hindoe Paaboel Andersen
2014-03-01bash: add completion for systemd-nspawnThomas Andersen
2014-02-26build-sys: add missing makefile symlinksLennart Poettering
2014-02-20bootctl: add bash completionThomas Hindoe Paaboel Andersen
2014-02-19busctl: add --no-legend and use in bash completionThomas Hindoe Paaboel Andersen
2014-02-19busctl: update bash completionThomas Hindoe Paaboel Andersen
2014-02-18delta: add bash completionThomas Hindoe Paaboel Andersen
2014-02-18machinectl: add bash completionThomas Hindoe Paaboel Andersen
2014-02-06shell-completion: fix completion of localectl set-localeZbigniew Jędrzejewski-Szmek
https://bugs.freedesktop.org/show_bug.cgi?id=74157
2014-02-06bash-completion: fix completion of complete verbsZbigniew Jędrzejewski-Szmek
When doing 'command verb<TAB>', the arguments for verb would be proposed, but it is too early. We should complete verb first. https://bugs.freedesktop.org/show_bug.cgi?id=74596
2014-01-15shell-completion: remove load from systemctlLukas Nykryn
2013-12-26Revert "completion: don't offer completions for journalctl -b"Lennart Poettering
This reverts commit c756a6d57cdb678b702c68913dae3e11ff0427ae.
2013-12-25completion: don't offer completions for journalctl -bDave Reisner
Since this is a shortopt with an optional argument, assume the user knows what they're doing. The longopts --boot and --this-boot will continue to offer boot IDs as completions.
2013-12-21loginctl,shell-completions: fix listing of sessions/users/seatsZbigniew Jędrzejewski-Szmek
2013-12-05shell-completion: busctlZbigniew Jędrzejewski-Szmek
2013-11-30shell-completion: systemctl catZbigniew Jędrzejewski-Szmek
Also update -H help string to follow the binaries.
2013-11-15bash-completion: journalctl --fileZbigniew Jędrzejewski-Szmek
2013-11-11shell: add list-timers to systemctl completionsDave Reisner
2013-10-29udev: builtin - rename net_link to net_setup_linkTom Gundersen
Also add shell completions.
2013-10-28journalctl: add --list-boots to show boot IDs and timesZbigniew Jędrzejewski-Szmek
Suggested by David Wilkins <dwilkins@maths.tcd.ie> in https://bugzilla.redhat.com/show_bug.cgi?id=967521: > [Specific boot ID is a] bit of a palaver to obtain. I consulted the > verbose dump of the journal to discover the _BOOT_ID for the > timestamp, and then generated the journal dump for that boot using > journalctl _BOOT_ID=foo -o short-monotonic.
2013-10-21shell-completion: dump has moved to systemd-analyzeZbigniew Jędrzejewski-Szmek
Rename NO_OPTION to STANDALONE for consistency with other files.
2013-09-20completion/systemctl: add missing list-sockets verbDave Reisner
2013-09-12bash-completion: add systemd-runZbigniew Jędrzejewski-Szmek
2013-08-28shell-completions: systemd-analyze set-log-levelZbigniew Jędrzejewski-Szmek
2013-08-12shell-completion: tell bash about --stateZbigniew Jędrzejewski-Szmek
2013-07-30bash-completion: simplify udevadm completionDave Reisner
The AA is unnecessary and only adds needless complexity. Replace it with a case statement instead of repeatedly calling __contains_word to overglorify string equalities.
2013-07-30bash-completion: use a better definition of __contains_wordDave Reisner
- scope the iterator var - use the correct, quoted, non-expansion prone positional parameter notation - prevent expansion on RHS of comparison - remove unneeded explicit returns. This really should be defined only once...
2013-07-30simplify bash completion for kernel-installHarald Hoyer
2013-07-26shell-completion: add kernel-installKay Sievers
2013-07-16journalctl: Add support for showing messages from a previous bootJan Janssen
Hi, I redid the boot ID look up to use enumerate_unique. This is quite fast if the cache is warm but painfully slow if it isn't. It has a slight chance of returning the wrong order if realtime clock jumps around. This one has to do n searches for every boot ID there is plus a sort, so it depends heavily on cache hotness. This is in contrast to the other way of look-up through filtering by a MESSAGE_ID, which only needs about 1 seek + whatever amount of relative IDs you want to walk. I also have a linked-list + (in-place) mergesort version of this patch, which has pretty much the same runtime. But since this one is using libc sorting and armortized allocation, I prefer this one. To summarize: The MESSAGE_ID way is a *lot* faster but can be incomplete due to rotation, while the enumerate+sort will find every boot ID out there but will be painfully slow for large journals and cold caches. You choose :P Jan