busctl: add --no-legend and use in bash completion

This commit is contained in:
Thomas Hindoe Paaboel Andersen
2014-02-19 17:35:35 +01:00
parent 8ec76163ff
commit 17d47d8d2d
3 changed files with 28 additions and 8 deletions
+2 -2
View File
@@ -32,14 +32,14 @@ __get_machines() {
__get_endpoints() {
local a b
busctl list --no-pager | { while read a b; do echo " $a"; done; };
busctl list --no-legend --no-pager | { while read a b; do echo " $a"; done; };
}
_busctl() {
local i verb comps
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
local -A OPTS=(
[STANDALONE]='-h --help --version --no-pager --system --user
[STANDALONE]='-h --help --version --no-pager --no-legend --system --user
--show-machine --unique --acquired --activatable'
[ARG]='-H --host -M --machine --address --match'
)