shell-completion: drop deprecated cgroup controller suggestion

This commit is contained in:
Yu Watanabe
2025-11-16 04:39:13 +09:00
parent 44440ea658
commit d32ec01223
2 changed files with 2 additions and 5 deletions

View 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
}

View 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 \