summaryrefslogtreecommitdiff
path: root/shell-completion
AgeCommit message (Collapse)AuthorFilesLines
2013-08-02zsh_completion: Speed up noncached perf of _journalctlWilliam Giokas1-1/+2
Splitting things unnecessarily at newlines causes tab completion to take an extremely long time. Also add a note saying that caching is not good for journalctl's completion.
2013-08-02zsh_completion: Split out zsh _systemd-tmpfilesWilliam Giokas2-11/+11
You can choose to have systemd-tmpfiles at configuration time, so only install the completion for this if configured to do so.
2013-08-02zsh_completion: Fix journalctl's --bootWilliam Giokas1-1/+10
Actually displays a list of boot ID's and offsets to the user
2013-08-02zsh_completion: Remove unused functionsWilliam Giokas1-13/+0
2013-08-02zsh_completion: Split out zsh _machinectlWilliam Giokas2-48/+48
2013-08-02zsh_completion: Split out zsh _systemd-analyzeWilliam Giokas2-27/+27
2013-08-02zsh_completion: Split out zsh _systemd-inhibitWilliam Giokas2-29/+28
2013-08-02zsh_completion: Split out zsh _systemd-nspawnWilliam Giokas2-25/+25
Also fix the random lack of completion
2013-08-02zsh_completion: Split out zsh _udevadmWilliam Giokas2-141/+142
2013-08-02zsh_completion: Split out zsh _timedatectlWilliam Giokas2-66/+72
2013-08-02zsh_completion: Split out zsh _coredumpctlWilliam Giokas2-37/+35
2013-08-02zsh_completion: Split out zsh _localectlWilliam Giokas2-85/+90
2013-08-02zsh_completion: Split out zsh _journalctlWilliam Giokas2-69/+84
Re-ordered some of the options and added a few that were missing previously as well.
2013-08-02zsh_completion: Split out zsh _hostnamectlWilliam Giokas2-33/+39
2013-08-02zsh_completion: Split out zsh _loginctlWilliam Giokas2-108/+113
2013-08-02zsh_completion: Split out zsh _systemctlWilliam Giokas2-326/+341
2013-08-02zsh_completion: fix zsh completion installationWilliam Giokas1-0/+0
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`
2013-07-30bash-completion: simplify udevadm completionDave Reisner1-52/+45
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 Reisner9-27/+36
- 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 Hoyer1-41/+23
2013-07-26shell-completion: add kernel-installKay Sievers1-0/+68
2013-07-24tmpfiles: introduce --exclude-prefixDave Reisner1-0/+1
The opposite of --prefix, allows specifying path prefixes which should be skipped when processing rules.
2013-07-24shell-completion: Add machinectl zsh completionWilliam Giokas1-1/+48
2013-07-16journalctl: Add support for showing messages from a previous bootJan Janssen1-4/+7
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
2013-07-10udev: add builtin 'keyboard' to manage key mappingsKay Sievers1-1/+1
2013-06-17journalctl,loginctl,systemctl,systemd-cgls: add -l as alias for --fullDaniel Albers2-3/+3
https://bugs.freedesktop.org/show_bug.cgi?id=65850
2013-06-10journalctl: add --system/--user flagsZbigniew Jędrzejewski-Szmek2-0/+3
--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.
2013-05-30systemctl: add commands set-default and get-defaultVáclav Pavlín1-1/+5
systemctl set-default NAME links the default.target to the given unit, get-default prints out the path to the currently set default target.
2013-05-06zsh_completion: complete only pids for systemd-coredumpctlDaniel Wallace1-4/+5
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.
2013-05-01zsh_completion: fix udevadm monitor flagsDaniel Wallace1-1/+1
The brackets in the _arguments description of udevadm monitor need to be escaped.
2013-05-01zsh-completion: add s-a critical-chainZbigniew Jędrzejewski-Szmek1-4/+6
2013-04-26systemd-analyse: add "critical-chain" commandHarald Hoyer1-0/+6
"critical-chain" prints a tree of the critical chain of units $ ./systemd-analyze critical-chain graphical.target @1.226s └─multi-user.target @1.226s └─nfs-lock.service @961ms +265ms └─rpcbind.service @958ms +1ms └─network.target @957ms └─NetworkManager.service @434ms +522ms └─basic.target @428ms └─sockets.target @428ms └─dbus.socket @428ms └─sysinit.target @427ms └─systemd-tmpfiles-setup.service @411ms +15ms └─local-fs.target @410ms └─boot-efi.automount @410ms └─boot.mount @397ms +9ms └─local-fs-pre.target @192ms └─systemd-udevd.service @187ms +5ms └─systemd-udevd-control.socket @140ms └─-.mount With the "--fuzz=<ms>" parameter one can display more units around the critical units. $ ./systemd-analyze --fuzz=10ms critical-chain └─multi-user.target @1.226s └─nfs-lock.service @961ms +265ms ├─rpcbind.service @958ms +1ms │ └─network.target @957ms │ └─NetworkManager.service @434ms +522ms │ ├─basic.target @428ms │ │ ├─sockets.target @428ms │ │ │ ├─dbus.socket @428ms │ │ │ │ └─sysinit.target @427ms │ │ │ │ ├─systemd-tmpfiles-setup.service @411ms +15ms │ │ │ │ │ └─local-fs.target @410ms │ │ │ │ │ └─boot-efi.automount @410ms │ │ │ │ │ └─boot.mount @397ms +9ms │ │ │ │ │ └─local-fs-pre.target @192ms │ │ │ │ │ └─systemd-udevd.service @187ms +5ms │ │ │ │ │ ├─systemd-udevd-control.socket @140ms │ │ │ │ │ │ └─-.mount │ │ │ │ │ └─systemd-udevd-kernel.socket @140ms │ │ │ │ └─swap.target @421ms │ │ │ │ └─dev-disk-by\x2duuid-....swap @414ms +6ms │ │ │ │ └─systemd-journald.socket │ │ │ ├─rpcbind.socket @428ms │ │ │ └─cups.socket @428ms │ │ ├─paths.target @428ms │ │ │ └─cups.path @428ms │ │ ├─timers.target @427ms │ │ │ └─systemd-tmpfiles-clean.timer @427ms │ │ └─sysinit.target @427ms │ │ └─... │ └─dbus.socket @428ms │ └─... └─network.target @957ms └─...
2013-04-24add bash completion for systemd-analyzeHarald Hoyer1-0/+70
2013-04-24systemctl: show reverse dependencies or before/after orderingZbigniew Jędrzejewski-Szmek2-3/+8
Also update completion scripts a bit.
2013-04-22shell-completion: add shell completion for "systemctl help"Harald Hoyer1-1/+1
2013-04-17shell-completion: use -a to see "empty" propertiesZbigniew Jędrzejewski-Szmek1-1/+1
2013-04-17bash-completion: --property supportZbigniew Jędrzejewski-Szmek1-7/+16
Just bash.
2013-04-11systemctl: allow multiple arguments to --typeZbigniew Jędrzejewski-Szmek2-6/+3
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.
2013-04-10shell-completion: show failed units as candidates for startZbigniew Jędrzejewski-Szmek2-4/+10
Also show disabled units as candidates for reenable, since it works and one may want to do enable-or-reenable in one line.
2013-04-10shell-completion: replace printf with echoZbigniew Jędrzejewski-Szmek2-27/+27
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".
2013-04-05shell-completion: work on session shell is --user is usedZbigniew Jędrzejewski-Szmek2-32/+40
https://bugs.freedesktop.org/show_bug.cgi?id=61695
2013-03-22Drop trailing whitespaceTollef Fog Heen1-6/+6
2013-03-20zsh completion: udev - remove firmware builtinTom Gundersen1-1/+1
2013-03-19shell-completion/bash/journalctl: suppress stderrHarald Hoyer1-2/+2
2013-03-18udev: make firmware loading optional and disable by defaultTom Gundersen1-1/+1
Distros that whish to support old kernels should set --with-firmware-dirs="/usr/lib/firmware/updates:/usr/lib/firmware" to retain the old behaviour.
2013-03-05zsh-completion: journalctl query by binary and deviceDaniel Wallace1-0/+11
implement 1883552c3d8 from bash completion in zsh-completion
2013-03-03bash-completion: split completions and move to new locationMichael Biebl9-624/+812
Split the large bash completion script into separate, smaller files each named after the binary it is used for and move the files to /usr/share/bash-completion/completions. This way the completions can be loaded on demand and we only install the completions for the tools we actually build. The old path /etc/bash_completion.d/ is deprecated and will disappear in the future.
2013-03-01journalctl: add --user-unit= switchDaniel Wallace2-1/+5
Add --user-unit= to make it possible to query for user logs by the name of the service.
2013-02-26bash-completion: journalctl query by binary and deviceZbigniew Jędrzejewski-Szmek1-0/+14
The approach taken is different between the two: - since there are many files in /usr, but messages appear only for a tiny subset, the completion is performed only for stuff shown by journalctl -F _EXE. This makes sense because the list is already in proper form. - since it is hard to convert _KERNEL_DEVICE to device file name, simply all files in /dev/ are used as possible completions. Unfortunately zsh completion requires more work and is not covered by this commit.
2013-02-13Move systemctl dot to systemd-analyze dotSimon Peeters2-6/+6