]> err.no Git - systemd/commitdiff
bash-completion: update naming of loginctl
authorDave Reisner <dreisner@archlinux.org>
Sun, 1 Apr 2012 23:04:23 +0000 (19:04 -0400)
committerKay Sievers <kay.sievers@vrfy.org>
Sun, 1 Apr 2012 23:25:14 +0000 (01:25 +0200)
18b754d3 changed the name of systemd-loginctl to loginctl, but didn't
update the bash-completion to match.

src/systemd-bash-completion.sh

index eab290e9c4313b33e3f96e239ec6536af243a623..62601de90a25570f192408059d233e3bbe0f160c 100644 (file)
@@ -201,7 +201,7 @@ __get_all_sessions () { systemd-loginctl list-sessions | { while read a b; do ec
 __get_all_users    () { systemd-loginctl list-users    | { while read a b; do echo "$b"; done; } ; }
 __get_all_seats    () { systemd-loginctl list-seats    | { while read a b; do echo "$a"; done; } ; }
 
-_systemd_loginctl () {
+_loginctl () {
         local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
         local verb comps
 
@@ -278,4 +278,4 @@ _systemd_loginctl () {
         COMPREPLY=( $(compgen -W "$comps" -- "$cur") )
         return 0
 }
-complete -F _systemd_loginctl systemd-loginctl
+complete -F _loginctl loginctl