summaryrefslogtreecommitdiffstats
path: root/shell-completion/zsh/_loginctl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* tree-wide: change --kill-who to --kill-whomZbigniew Jędrzejewski-Szmek2022-08-261-1/+1
| | | | | | | | | | | getopt allows non-ambiguous abbreviations, so backwards-compat is maintained, and people can use --kill-who (or even shorter abbreviations). English is flexible, so in common speach people would use both forms, even if "whom" is technically more correct. The advantage of using the longer form in the code is that we effectively allow both forms, so we stop punishing people who DTGCT¹, but still allow people to use the spoken form if they prefer. 1. Do the gramatically correct thing
* shell-completion: revert c1072f6473bafa063cbf700c86524083d2857031Eric Cook2021-06-171-1/+1
| | | | fixing https://github.com/systemd/systemd/issues/19689
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* zsh: loginctl: complete alias 'self'Ronan Pigott2020-09-301-0/+6
|
* shell-completion/zsh: add -*type*- headersZbigniew Jędrzejewski-Szmek2019-04-121-1/+1
| | | | | Since there's no file extension, emacs and other editors do not know that this is supposed to be in shell syntax.
* shell-completion: use 4 space indentation tooZbigniew Jędrzejewski-Szmek2019-04-121-98/+98
| | | | The same as in other places, indentation levels were all over the place.
* zsh completion: Prevent functions from clobbering each other, &c.dana2019-01-081-2/+5
| | | | | | - Don't redefine helpers on every call - Prefix helper names with main function name - Adjust some helper names for consistency and convention adherance
* Add SPDX license headers to shell completion scriptsZbigniew Jędrzejewski-Szmek2017-11-191-0/+1
|
* zsh-completion: _loginctl/_systemd/_systemd-inhibit improvementsEric Cook2015-06-231-3/+19
| | | | | | | | | | | | | | | | | | | | | | _loginctl: respects the verbose style. which allows a user to get the pre d5df0d950f8bc behavior of not showing a description for sessions and users, by default they aren't shown. zstyle ':completion:*' verbose true or zstyle ':completion:*:loginctl*:*' verbose true # or similar Will show the descriptions. zstyle ':completion:*' verbose true and zstyle ':completion:*:loginctl*:*' verbose false # or similar Won't show descriptions for loginctl only _systemd: complete pids for systemd-notify's --pid option. display a message of the expected argument for other options. _systemd-inhibit: complete block & delay for --mode display a message of the expected argument for --who/--why
* zsh-completion: _loginctl - general bug fixesEric Cook2015-06-171-10/+54
| | | | | | | | | | | | | | | | | | | | | | 1) the iterator `fun' has an local scope. after running the completer, it will no longer be defined. 2) use _describe instead of calling compadd. Using compadd without calling _description or something similar before, restricts the user's ability to customize what is presented to them. zstyle ':completion:*' format 'Completing %d' - now displays an header showing what is being completed. zstyle ':completion::complete:loginctl-*::users' users user1 user2 - allows the user to manually specify which users is offered zstyle :completion::complete:loginctl-kill-user:\* \ ignored-patterns '(100<0-4>|user1)' - selectively ignore some users when completing loginctl kill-user <tab> Sessions, UIDs now have descriptions when selecting them. 3) removed the call to _loginctl_all_seats in _loginctl_attach(), since _loginctl_seats calls it a second time, right before adding matches. There isn't a noticeable difference doing this.
* zsh-completion: update loginctlRonny Chevalier2015-04-081-2/+3
|
* completions: fix/augment zsh completions for systemd-nspawn, busctl, ↵Daniel Mack2014-03-251-1/+6
| | | | loginctl, hostnamectl, localectl, machinectl
* loginctl,shell-completions: fix listing of sessions/users/seatsZbigniew Jędrzejewski-Szmek2013-12-221-3/+3
|
* shell-completion: systemctl catZbigniew Jędrzejewski-Szmek2013-12-011-1/+1
| | | | Also update -H help string to follow the binaries.
* zsh_completion: Fix single letter argsWilliam Giokas2013-08-231-3/+3
| | | | | | | | | | | | | Things like -n to specify the lines to show with systemctl and journalctl accepts syntax like: journalctl -n4 systemctl -n14 Previously, typing `-nXX <tab>` where XX is a number, zsh would try to complete an integer. Now it will see the XX and use the _journalctl_none completion. This is also how any of the single letter options that take arguments work as well.
* zsh_completion: Move helper function to autoloadWilliam Giokas2013-08-151-7/+1
| | | | | | | | | _hosts_or_user_at_host was used by 6 different completions, and previously was in all 6 of those files. I moved it out to its own file, _sd_hosts_or_user_at_host. This will be autoloaded for use in other completion functions. It also allows external completions to use this function by simply calling _sd_hosts_or_user_at_host as in the systemd completions.
* zsh_completion: Split out zsh _loginctlWilliam Giokas2013-08-021-0/+112