]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shell-completion: drop deprecated cgroup controller suggestion 38969/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 15 Nov 2025 19:39:13 +0000 (04:39 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 17 Nov 2025 12:31:51 +0000 (21:31 +0900)
shell-completion/bash/systemd-cgtop
shell-completion/zsh/_systemd

index a444b6506438e551004cf4c22ff0334592f44f1e..325aa60de704844bdb4da942d4517c5b9bccbce6 100644 (file)
@@ -59,9 +59,7 @@ _systemd_cgtop() {
     fi
 
     COMPREPLY=( $(compgen -W '${OPTS[*]}' -- "$cur") )
-    if [ -d /sys/fs/cgroup/systemd/ ]; then
-        COMPREPLY+=( $(cd /sys/fs/cgroup/systemd/ && compgen -o nospace -o dirnames "$cur") )
-    elif [ -d /sys/fs/cgroup/ ]; then
+    if [ -d /sys/fs/cgroup/ ]; then
         COMPREPLY+=( $(cd /sys/fs/cgroup/ && compgen -o nospace -o dirnames "$cur") )
     fi
 }
index 4d9ec7f032393d2ee9318f350a1c364f753e4bf9..f555abd06b5995775898309ea8fa28be52969596 100644 (file)
@@ -28,8 +28,7 @@ case "$service" in
             '(- *)--version[Show package version]' \
             '--no-pager[Do not pipe output into a pager]' \
             '(-a --all)'{-a,--all}'[Show all groups, including empty]' \
-            '-k[Include kernel threads in output]' \
-            ':cgroups:(cpuset cpu cpuacct memory devices freezer blkio)'
+            '-k[Include kernel threads in output]'
         ;;
     systemd-cgtop)
         _arguments \