fb9d85b71ac1a9247af623f98f4e229fccd0fe7d |
|
23-Jun-2015 |
Eric Cook <llua@gmx.com> |
zsh-completion: _loginctl/_systemd/_systemd-inhibit improvements
_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 |
b0fe29ff9e04d02d939ffca0b942cfb2a3494171 |
|
17-Jun-2015 |
Eric Cook <llua@gmx.com> |
zsh-completion: _loginctl - general bug fixes
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. |
8470025541039f39391815b2ac93952003b7eee8 |
|
08-Apr-2015 |
Ronny Chevalier <chevalier.ronny@gmail.com> |
zsh-completion: update loginctl |
4433c995c77b66f42fe4a238aff6b53706628a2e |
|
25-Mar-2014 |
Daniel Mack <zonque@gmail.com> |
completions: fix/augment zsh completions for systemd-nspawn, busctl, loginctl, hostnamectl, localectl, machinectl |
841aa8c0b484b96654b95d3c4e936e37da4c7dda |
|
22-Dec-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
loginctl,shell-completions: fix listing of sessions/users/seats |
6da49b8b2f78fd74bb33de961ef8a4c7f727b822 |
|
01-Dec-2013 |
Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> |
shell-completion: systemctl cat
Also update -H help string to follow the binaries. |
862f4963c6f7778cea9e715eeb11ea959eba6db3 |
|
23-Aug-2013 |
William Giokas <1007380@gmail.com> |
zsh_completion: Fix single letter args
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. |
3e7f60ab32fc2a7d5244d10a0c4e1c3be838409d |
|
15-Aug-2013 |
William Giokas <1007380@gmail.com> |
zsh_completion: Move helper function to autoload
_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. |
799d54be0b681c0329539fca604261994e7f8c0e |
|
02-Aug-2013 |
William Giokas <1007380@gmail.com> |
zsh_completion: Split out zsh _loginctl |