1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

bash-completion: add missing option to systemd-cgls

Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Arthur Zamarin 2023-12-21 23:13:35 +02:00
parent fabe596e7e
commit bd97ae259d
No known key found for this signature in database
GPG Key ID: 02A0AF503D120504

View File

@ -44,7 +44,7 @@ _systemd_cgls() {
local -A OPTS=(
[STANDALONE]='-h --help --version --all -l --full -k --no-pager --xattr=no --cgroup-id=no'
[ARG]='-M --machine -u --unit --user-unit'
[ARG]='-c --cgroup-id -M --machine -u --unit --user-unit -x --xattr'
)
_init_completion || return
@ -57,6 +57,9 @@ _systemd_cgls() {
--unit|-u)
comps=$( __get_units_have_cgroup --system )
;;
-c|--cgroup-id|-x|--xattr)
comps='yes no'
;;
--user-unit)
comps=$( __get_units_have_cgroup --user )
;;