From d32ec012232e830c54c7a79e054da19d27ebacef Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Sun, 16 Nov 2025 04:39:13 +0900 Subject: [PATCH] shell-completion: drop deprecated cgroup controller suggestion --- shell-completion/bash/systemd-cgtop | 4 +--- shell-completion/zsh/_systemd | 3 +-- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/shell-completion/bash/systemd-cgtop b/shell-completion/bash/systemd-cgtop index a444b650643..325aa60de70 100644 --- a/shell-completion/bash/systemd-cgtop +++ b/shell-completion/bash/systemd-cgtop @@ -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 } diff --git a/shell-completion/zsh/_systemd b/shell-completion/zsh/_systemd index 4d9ec7f0323..f555abd06b5 100644 --- a/shell-completion/zsh/_systemd +++ b/shell-completion/zsh/_systemd @@ -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 \ -- 2.47.3