diff options
Diffstat (limited to 'shell-completion')
-rw-r--r-- | shell-completion/bash/systemctl.in | 2 | ||||
-rw-r--r-- | shell-completion/zsh/_systemctl.in | 5 |
2 files changed, 6 insertions, 1 deletions
diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in index 773a59db38..34c9444353 100644 --- a/shell-completion/bash/systemctl.in +++ b/shell-completion/bash/systemctl.in @@ -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' ) 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 |