shell-completion: drop deprecated cgroup controller suggestion

This commit is contained in:
Yu Watanabe
2025-11-17 21:31:51 +09:00
parent 44440ea658
commit d32ec01223
2 changed files with 2 additions and 5 deletions
+1 -3
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
}
+1 -2
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 \