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
}
'(- *)--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 \