mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
shell-completion: systemctl switch-root verb
The completion is rudimentary (all files). I think this is OK since this is used so rarely. But not having it proposed at all is annoying.
This commit is contained in:
parent
b18d23d7ac
commit
7b742b3130
@ -160,7 +160,7 @@ _systemctl () {
|
||||
reboot rescue show-environment suspend get-default
|
||||
is-system-running'
|
||||
[NAME]='snapshot'
|
||||
[FILE]='link'
|
||||
[FILE]='link switch-root'
|
||||
[TARGETS]='set-default'
|
||||
)
|
||||
|
||||
|
@ -59,6 +59,7 @@
|
||||
"reboot:Shut down and reboot the system"
|
||||
"kexec:Shut down and reboot the system with kexec"
|
||||
"exit:Ask for user instance termination"
|
||||
"switch-root:Change root directory"
|
||||
)
|
||||
|
||||
if (( CURRENT == 1 )); then
|
||||
@ -297,6 +298,10 @@ done
|
||||
_sd_unit_files
|
||||
}
|
||||
|
||||
(( $+functions[_systemctl_switch-root] )) || _systemctl_switch-root() {
|
||||
_files
|
||||
}
|
||||
|
||||
# no systemctl completion for:
|
||||
# [STANDALONE]='daemon-reexec daemon-reload default
|
||||
# emergency exit halt kexec list-jobs list-units
|
||||
|
Loading…
Reference in New Issue
Block a user