summaryrefslogtreecommitdiff
path: root/shell-completion/zsh/_systemctl.in
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-04-02 22:54:35 -0400
committerzbyszek <zbyszek@deli.byod.gmu.edu>2015-04-08 11:28:45 -0400
commit7b742b3130941b5c8d5e178b6694428fb3b61086 (patch)
tree33e34379a2813e468800cfb84715b2f2eea63d5a /shell-completion/zsh/_systemctl.in
parentb18d23d7ac6a53d52b99dbf0b2048d5a946a2e28 (diff)
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.
Diffstat (limited to 'shell-completion/zsh/_systemctl.in')
-rw-r--r--shell-completion/zsh/_systemctl.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell-completion/zsh/_systemctl.in b/shell-completion/zsh/_systemctl.in
index 3bbfb6f187..cce9dea8b5 100644
--- a/shell-completion/zsh/_systemctl.in
+++ b/shell-completion/zsh/_systemctl.in
@@ -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