mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
shell-completion: cgtop bash completion: add -r,--raw,-k,-P,--order
This commit is contained in:
parent
79af4b6c1c
commit
a2accacb98
@ -34,8 +34,8 @@ _systemd_cgtop() {
|
||||
local comps
|
||||
|
||||
local -A OPTS=(
|
||||
[STANDALONE]='-h --help --version -p -t -c -m -i -b --batch'
|
||||
[ARG]='--cpu --depth -M --machine --recursive -n --iterations -d --delay'
|
||||
[STANDALONE]='-h --help --version -p -t -c -m -i -b --batch -r --raw -k -P'
|
||||
[ARG]='--cpu --depth -M --machine --recursive -n --iterations -d --delay --order'
|
||||
)
|
||||
|
||||
_init_completion || return
|
||||
@ -47,6 +47,10 @@ _systemd_cgtop() {
|
||||
;;
|
||||
--recursive)
|
||||
comps='yes no'
|
||||
;;
|
||||
--order)
|
||||
comps='path tasks cpu memory io'
|
||||
;;
|
||||
esac
|
||||
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
|
||||
return 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user