bash-completion: add missing options and commands of timedatectl

Follow-up for 6129ec852e.
This commit is contained in:
Yu Watanabe 2018-05-15 17:31:32 +09:00 committed by Zbigniew Jędrzejewski-Szmek
parent b330320278
commit d231d569d8
1 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,8 @@ _timedatectl() {
local i verb comps
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
local OPTS='-h --help --version --adjust-system-clock --no-pager
--no-ask-password -H --host -M --machine'
--no-ask-password -H --host -M --machine --monitor
-p --property -a --all --value'
if __contains_word "$prev" $OPTS; then
case $prev in
@ -56,7 +57,7 @@ _timedatectl() {
local -A VERBS=(
[BOOLEAN]='set-local-rtc set-ntp'
[STANDALONE]='status list-timezones'
[STANDALONE]='status list-timezones timesync-status show-timesync'
[TIMEZONES]='set-timezone'
[TIME]='set-time'
)