From bd97ae259d13653b1750d8f1c8bd0b49740366b4 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Thu, 21 Dec 2023 23:13:35 +0200 Subject: [PATCH] bash-completion: add missing option to systemd-cgls Signed-off-by: Arthur Zamarin --- shell-completion/bash/systemd-cgls | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shell-completion/bash/systemd-cgls b/shell-completion/bash/systemd-cgls index 8dda5a82dd..f80bea7353 100644 --- a/shell-completion/bash/systemd-cgls +++ b/shell-completion/bash/systemd-cgls @@ -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 ) ;;