1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-07 09:56:51 +03:00
systemd/shell-completion/bash
Yu Watanabe 6bda23dd6a bash-completion: use the first argument instead of the global variable (#6457)
Without this fix:

$ systemctl start <tab>
Display all 135 possibilities? (y or n)
$ __get_startable_units --system | wc -l
224

the number of the suggestions are quite different, as __get_startable_units --system does
not filter already started units. With this fix,

$ systemctl start <tab>
Display all 135 possibilities? (y or n)
$ __get_startable_units --system | wc -l
123
$ __get_template_names --system | wc -l
12

the number of the suggestions matches one the function returns.
For consistency with the other internal functions, it should use the first argument
instead of the global variable $mode.

[zj: add commit message to make it sound like we know what we're doing]
2017-07-27 07:22:54 -04:00
..
bootctl
busctl shell-completion: add full support for completing busctl command lines, with services, objects, interfaces, members, and signatures 2014-12-23 22:44:32 +01:00
coredumpctl shell-completion: include the new coredumpctl options 2017-02-24 21:30:59 +02:00
hostnamectl hostname: add 'convertible' chassis type 2017-02-28 11:54:52 +01:00
journalctl bash_completion: journalctl: Complete -t option values 2017-01-21 16:38:23 +09:00
kernel-install
localectl Updates in bash autocompletions 2015-01-29 00:44:30 -05:00
loginctl bash-completion: list valid signal names 2015-11-24 16:05:42 +00:00
machinectl machinectl: Added stop as alias for poweroff (#3406) 2016-06-06 17:06:20 +02:00
meson.build meson: use booleans for conf.set and drop unecessary conditionals 2017-05-02 16:29:11 -04:00
networkctl Add networkctl label to man and shell completion 2017-06-27 10:30:41 -04:00
systemctl.in bash-completion: use the first argument instead of the global variable (#6457) 2017-07-27 07:22:54 -04:00
systemd-analyze analyze: add syscall-filter verb 2016-11-03 09:35:35 -04:00
systemd-cat
systemd-cgls
systemd-cgtop shell-completion: cgtop bash completion: add -r,--raw,-k,-P,--order 2015-09-21 17:33:00 +00:00
systemd-delta
systemd-detect-virt
systemd-nspawn nspawn-completion: implementation of shell completion of --notify-ready (#3679) 2016-07-08 17:44:20 +02:00
systemd-path bash-completion: use builtins when generating list 2015-09-28 15:42:27 -04:00
systemd-resolve shell-completion: add systemd-resolve --status (#4085) 2016-09-02 12:18:11 +02:00
systemd-run shell-completion: add --wait to systemd-run completions (#4140) 2016-09-14 22:38:53 +02:00
timedatectl Updates in bash autocompletions 2015-01-29 00:44:30 -05:00
udevadm