]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash-completion: add missing option to systemd-cgls
authorArthur Zamarin <arthurzam@gentoo.org>
Thu, 21 Dec 2023 21:13:35 +0000 (23:13 +0200)
committerArthur Zamarin <arthurzam@gentoo.org>
Thu, 21 Dec 2023 21:13:35 +0000 (23:13 +0200)
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
shell-completion/bash/systemd-cgls

index 8dda5a82dd134fc9780b51f85cbc75b39535f8b9..f80bea73532fb5fed50ddf31690fb5ee5944413a 100644 (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 )
                 ;;