zsh_completion: fix zsh completion installation Moved zsh shell completion to shell-completion/zsh/_systemd for automake's sake. Also allow users to specify where the files should go with:: ./configure --with-zshcompletiondir=/path/to/some/where and by default going to `$datadir/zsh/site-functions`
tmpfiles: introduce --exclude-prefix The opposite of --prefix, allows specifying path prefixes which should be skipped when processing rules.
shell-completion: Add machinectl zsh completion
journalctl,loginctl,systemctl,systemd-cgls: add -l as alias for --full https://bugs.freedesktop.org/show_bug.cgi?id=65850
journalctl: add --system/--user flags --user basically gives messages from your own systemd --user services. --system basically gives messages from PID 1, kernel, and --system services. Those two options are not exahustive, because a priviledged user might be able to see messages from other users, and they will not be shown with either or both of those flags.
zsh_completion: complete only pids for systemd-coredumpctl Instead of completing the whole line, which doesn't work, only complete the pid, but still show the whole line so the user can see which command was which. Users can also let the parameter expansion sort the completion by date instead of by pid, by setting zstyle ':completion:*:*:systemd-coredumpctl:*' sort no so that the zshcompsys doesn't sort the _describe function for only systemd-coredumpctl.
zsh_completion: fix udevadm monitor flags The brackets in the _arguments description of udevadm monitor need to be escaped.
zsh-completion: add s-a critical-chain
systemctl: show reverse dependencies or before/after ordering Also update completion scripts a bit.
systemctl: allow multiple arguments to --type This mirrors --property, and is generally useful. New functionality is used in bash completion. In case of zsh completion, new functionality is less useful because of caching. Nevertheless, zsh completion for restart is made to behave more-or-less the same as bash completion. At least sockets can be restarted.
shell-completion: show failed units as candidates for start Also show disabled units as candidates for reenable, since it works and one may want to do enable-or-reenable in one line.
shell-completion: replace printf with echo It is faster to use a bash built-in, then to invoke an external program. The problem of unit names starting with a dash is solved by prepending a space. Spaces are ignored anyway. For zsh, replace echo "$unit", which is vulnerable to dashes, with echo " $unit".
shell-completion: work on session shell is --user is used https://bugs.freedesktop.org/show_bug.cgi?id=61695
Drop trailing whitespace
zsh completion: udev - remove firmware builtin
zsh-completion: journalctl query by binary and device implement 1883552c3d8 from bash completion in zsh-completion
journalctl: add --user-unit= switch Add --user-unit= to make it possible to query for user logs by the name of the service.
Move systemctl dot to systemd-analyze dot
systemctl: add is-failed Adds is-failed to join is-active and is-enabled. I grabbed this one from the todo list. Most of the functionality was already there for is-active. I just needed to make check_one_unit take the states to check for as an argument instead of the hardcoded "active" and "reloading". is-failed will return 1 if none of the units given are failed. This is different from is-active which will return 3 if none of the units given are active. It returns 3 with this comment: /* According to LSB: "program is not running" */ As that does not make sense when looking for failed units I simply chose 1 instead.
zsh: add hibernate and hybrid-sleep to zsh-completion