summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mack <github@zonque.org>2015-09-21 19:43:49 +0200
committerDaniel Mack <github@zonque.org>2015-09-21 19:43:49 +0200
commitdd2c1128db93410616f1f1ba169e84719f121239 (patch)
treebfc27b4038e805ab32ef7ec5fd1f2ec4ede5729a
parentde45f28e0901fb60bcda8e2ce60a13d11400d0b1 (diff)
parenta2accacb984b784c9a5215ece6c0bf42f096e229 (diff)
Merge pull request #1322 from evverx/update-systemd-cgtop-bash-completion
Update systemd-cgtop bash completion
-rw-r--r--shell-completion/bash/systemd-cgtop8
1 files changed, 6 insertions, 2 deletions
diff --git a/shell-completion/bash/systemd-cgtop b/shell-completion/bash/systemd-cgtop
index beee627dbe..f1ed22fd55 100644
--- a/shell-completion/bash/systemd-cgtop
+++ b/shell-completion/bash/systemd-cgtop
@@ -34,8 +34,8 @@ _systemd_cgtop() {
local comps
local -A OPTS=(
- [STANDALONE]='-h --help --version -p -t -c -m -i -b --batch -n --iterations -d --delay'
- [ARG]='--cpu --depth -M --machine --recursive'
+ [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