mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
shell-completion: drop deprecated cgroup controller suggestion
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user