mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-11 05:17:44 +03:00
bash-completion: bootctl: support more options and verbs
This commit is contained in:
parent
edd50d5e24
commit
92360836a0
@ -29,7 +29,8 @@ _bootctl() {
|
||||
local i verb comps
|
||||
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||
local -A OPTS=(
|
||||
[STANDALONE]='-h --help --version'
|
||||
[STANDALONE]='-h --help --no-variables -p --print-path --version'
|
||||
[ARG]='--path'
|
||||
)
|
||||
|
||||
if [[ "$cur" = -* ]]; then
|
||||
@ -38,7 +39,7 @@ _bootctl() {
|
||||
fi
|
||||
|
||||
local -A VERBS=(
|
||||
[STANDALONE]='status'
|
||||
[STANDALONE]='help install list remove status update'
|
||||
)
|
||||
|
||||
for ((i=0; i < COMP_CWORD; i++)); do
|
||||
|
Loading…
Reference in New Issue
Block a user