mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
Merge pull request #1322 from evverx/update-systemd-cgtop-bash-completion
Update systemd-cgtop bash completion
This commit is contained in:
commit
dd2c1128db
@ -34,8 +34,8 @@ _systemd_cgtop() {
|
|||||||
local comps
|
local comps
|
||||||
|
|
||||||
local -A OPTS=(
|
local -A OPTS=(
|
||||||
[STANDALONE]='-h --help --version -p -t -c -m -i -b --batch -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'
|
[ARG]='--cpu --depth -M --machine --recursive -n --iterations -d --delay --order'
|
||||||
)
|
)
|
||||||
|
|
||||||
_init_completion || return
|
_init_completion || return
|
||||||
@ -47,6 +47,10 @@ _systemd_cgtop() {
|
|||||||
;;
|
;;
|
||||||
--recursive)
|
--recursive)
|
||||||
comps='yes no'
|
comps='yes no'
|
||||||
|
;;
|
||||||
|
--order)
|
||||||
|
comps='path tasks cpu memory io'
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
|
COMPREPLY=( $(compgen -W '$comps' -- "$cur") )
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user