mirror of
https://github.com/systemd/systemd
synced 2024-10-15 04:24:19 +00:00
bash-completion: hostnamectl: add a missing option
This commit is contained in:
parent
245c1e6802
commit
afcb2246be
|
@ -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") )
|
||||
|
|
Loading…
Reference in a new issue