bash-completion: hostnamectl: add a missing option

This commit is contained in:
Yu Watanabe 2018-01-10 16:01:58 +09:00
parent 245c1e6802
commit afcb2246be

View file

@ -29,7 +29,7 @@ _hostnamectl() {
local i verb comps
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
local OPTS='-h --help --version --transient --static --pretty
--no-ask-password -H --host --machine'
--no-ask-password -H --host -M --machine'
if [[ $cur = -* ]]; then
COMPREPLY=( $(compgen -W '${OPTS[*]}' -- "$cur") )