]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
bash-completion: add missing options and commands of timedatectl
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 15 May 2018 08:31:32 +0000 (17:31 +0900)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 15 May 2018 08:52:45 +0000 (10:52 +0200)
Follow-up for 6129ec852ee470a3682d55f87852ee7ccabb5520.

shell-completion/bash/timedatectl

index 13b99f22ba77065ecce95056426b851bf20bd705..417e6d681d295dc71510fb62a345b52a60ccfae1 100644 (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'
         )