mirror of
https://github.com/systemd/systemd.git
synced 2026-11-06 05:17:24 +00:00
zsh: Add missing --boot-loader-entry option in systemctl
This commit is contained in:
1 parent
696175871c
commit
d5e1afb553
2 files changed
+8
-1
No files matched your search
@@ -35,7 +35,6 @@ SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
- **zsh:**
|
||||
- `<command> <verb> -<TAB>` should complete options, but currently does not
|
||||
- systemctl add-wants,add-requires
|
||||
- systemctl reboot --boot-loader-entry=
|
||||
|
||||
- systemctl status should know about 'systemd-analyze calendar ... --iterations='
|
||||
- If timer has just OnInactiveSec=..., it should fire after a specified time
|
||||
|
||||
@@ -508,6 +508,13 @@ done
|
||||
_values -s , "${_modes[@]}"
|
||||
}
|
||||
|
||||
(( $+functions[_systemctl_boot_loader_entries] )) ||
|
||||
_systemctl_boot_loader_entries() {
|
||||
local -a _entries
|
||||
_entries=( ${(f)"$(_call_program boot-loader-entries systemctl --boot-loader-entry=help 2>/dev/null)"} )
|
||||
_wanted boot-loader-entries expl 'boot loader entry' compadd "$@" -a _entries
|
||||
}
|
||||
|
||||
(( $+functions[_systemctl_timestamp] )) ||
|
||||
_systemctl_timestamp() {
|
||||
local -a _styles
|
||||
@@ -567,6 +574,7 @@ _sys_arguments=(
|
||||
'(-n --lines)'{-n+,--lines=}'[Journal entries to show]:number of entries'
|
||||
'(-o --output)'{-o+,--output=}'[Change journal output mode]:modes:_sd_outputmodes'
|
||||
'--firmware-setup[Tell the firmware to show the setup menu on next boot]'
|
||||
'--boot-loader-entry=[Boot into a specific boot loader entry on next boot]:entry:_systemctl_boot_loader_entries'
|
||||
'--plain[When used with list-dependencies, print output as a list]'
|
||||
'--failed[Show failed units]'
|
||||
'--timestamp=[Change format of printed timestamps]:style:_systemctl_timestamp'
|
||||
|
||||
Reference in new issue
Block a user