summaryrefslogtreecommitdiff
path: root/bash-completion/systemd-bash-completion.sh
diff options
context:
space:
mode:
authorGert Michael Kulyk <gkulyk@klio>2012-05-27 20:43:55 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-29 19:47:20 +0200
commit80d37ae7b9d2c471e89e018a8f1e7cab8cd53123 (patch)
treefcf91c3933333aaa7b274358abd98145f5158c6d /bash-completion/systemd-bash-completion.sh
parent6b17d77e3e9eb80786f685e161515a07e0d8c4b8 (diff)
bash: Reflect new name of loginctl in bash-completion script
https://bugs.freedesktop.org/show_bug.cgi?id=50402
Diffstat (limited to 'bash-completion/systemd-bash-completion.sh')
-rw-r--r--bash-completion/systemd-bash-completion.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/bash-completion/systemd-bash-completion.sh b/bash-completion/systemd-bash-completion.sh
index 9cd439c5f2..fc2dda5bfc 100644
--- a/bash-completion/systemd-bash-completion.sh
+++ b/bash-completion/systemd-bash-completion.sh
@@ -197,9 +197,9 @@ _systemctl () {
}
complete -F _systemctl systemctl
-__get_all_sessions () { systemd-loginctl list-sessions | { while read -r a b; do printf "%s\n" "$a"; done; } ; }
-__get_all_users () { systemd-loginctl list-users | { while read -r a b; do printf "%s\n" "$b"; done; } ; }
-__get_all_seats () { systemd-loginctl list-seats | { while read -r a b; do printf "%s\n" "$a"; done; } ; }
+__get_all_sessions () { loginctl list-sessions | { while read -r a b; do printf "%s\n" "$a"; done; } ; }
+__get_all_users () { loginctl list-users | { while read -r a b; do printf "%s\n" "$b"; done; } ; }
+__get_all_seats () { loginctl list-seats | { while read -r a b; do printf "%s\n" "$a"; done; } ; }
_loginctl () {
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}