summaryrefslogtreecommitdiff
path: root/shell-completion/bash/systemctl.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-11-24 23:07:10 +0100
committerLennart Poettering <lennart@poettering.net>2015-11-24 23:07:10 +0100
commit91f5f213326273a90cdea748039c626facdb8ca8 (patch)
tree3ac09a30503872abef8bf77c9ddfa5bf27db4d57 /shell-completion/bash/systemctl.in
parentdd6f132af42e2740fbcb14749e9e71d2d645848e (diff)
parentc2af810150f41057980342a3614cd0155a480c09 (diff)
Merge pull request #2020 from evverx/signals-completion
bash-completion: list valid signal names
Diffstat (limited to 'shell-completion/bash/systemctl.in')
-rw-r--r--shell-completion/bash/systemctl.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/shell-completion/bash/systemctl.in b/shell-completion/bash/systemctl.in
index d80d8f02a8..6ffab33e45 100644
--- a/shell-completion/bash/systemctl.in
+++ b/shell-completion/bash/systemctl.in
@@ -115,7 +115,8 @@ _systemctl () {
if __contains_word "$prev" ${OPTS[ARG]}; then
case $prev in
--signal|-s)
- comps=$(compgen -A signal)
+ _signals
+ return
;;
--type|-t)
comps=$(__systemctl $mode -t help)