]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shell-completion: cgtop bash completion: add -r,--raw,-k,-P,--order 1322/head
authorEvgeny Vereshchagin <evvers@ya.ru>
Mon, 21 Sep 2015 17:33:00 +0000 (17:33 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Mon, 21 Sep 2015 17:33:00 +0000 (17:33 +0000)
shell-completion/bash/systemd-cgtop

index e6bb0e903b13a77890ba0d797cbb6ca2771ec3db..f1ed22fd5540bb08fc14d068ea91a087e249812c 100644 (file)
@@ -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