summaryrefslogtreecommitdiff
path: root/shell-completion
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2021-10-04 11:25:50 +0200
committerJan Janssen <medhefgo@web.de>2021-10-08 15:32:50 +0200
commit39ddc32a86d4aff15b07c8993d1cff0fe1fa4123 (patch)
tree101800490e350a4b88a8d0a03ef20acf25270204 /shell-completion
parent52b6b35643f0eb2ec272c5b773b47c81fe5a1e57 (diff)
downloadsystemd-39ddc32a86d4aff15b07c8993d1cff0fe1fa4123.tar.gz
bootctl: Add set-timeout verb
Fixes: #18766
Diffstat (limited to 'shell-completion')
-rw-r--r--shell-completion/bash/bootctl2
-rw-r--r--shell-completion/zsh/_bootctl2
2 files changed, 3 insertions, 1 deletions
diff --git a/shell-completion/bash/bootctl b/shell-completion/bash/bootctl
index e61188fee9..190e3d33f5 100644
--- a/shell-completion/bash/bootctl
+++ b/shell-completion/bash/bootctl
@@ -57,7 +57,7 @@ _bootctl() {
local -A VERBS=(
# systemd-efi-options takes an argument, but it is free-form, so we cannot complete it
- [STANDALONE]='help status install update remove is-installed random-seed systemd-efi-options list'
+ [STANDALONE]='help status install update remove is-installed random-seed systemd-efi-options list set-timeout set-timeout-oneshot'
[BOOTENTRY]='set-default set-oneshot'
[BOOLEAN]='reboot-to-firmware'
)
diff --git a/shell-completion/zsh/_bootctl b/shell-completion/zsh/_bootctl
index 2b50f307f1..87ecbe37c3 100644
--- a/shell-completion/zsh/_bootctl
+++ b/shell-completion/zsh/_bootctl
@@ -46,6 +46,8 @@ _bootctl_reboot-to-firmware() {
"list:List boot loader entries"
"set-default:Set the default boot loader entry"
"set-oneshot:Set the default boot loader entry only for the next boot"
+ "set-timeout:Set the menu timeout"
+ "set-timeout-oneshot:Set the menu timeout for the next boot only"
)
if (( CURRENT == 1 )); then
_describe -t commands 'bootctl command' _bootctl_cmds || compadd "$@"