mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-10-27 10:25:06 +03:00
shell-completion: update systemd-cgtop bash completion: --recursive
This commit is contained in:
parent
a1b7a5bbdd
commit
73b73b762c
@ -35,7 +35,7 @@ _systemd_cgtop() {
|
||||
|
||||
local -A OPTS=(
|
||||
[STANDALONE]='-h --help --version -p -t -c -m -i -b --batch -n --iterations -d --delay'
|
||||
[ARG]='--cpu --depth -M --machine'
|
||||
[ARG]='--cpu --depth -M --machine --recursive'
|
||||
)
|
||||
|
||||
_init_completion || return
|
||||
@ -45,6 +45,8 @@ _systemd_cgtop() {
|
||||
--machine|-M)
|
||||
comps=$( __get_machines )
|
||||
;;
|
||||
--recursive)
|
||||
comps='yes no'
|
||||
esac
|
||||
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user