mirror of
https://github.com/systemd/systemd
synced 2024-10-15 20:45:09 +00:00
bash: Reflect new name of loginctl in bash-completion script
https://bugs.freedesktop.org/show_bug.cgi?id=50402
This commit is contained in:
parent
6b17d77e3e
commit
80d37ae7b9
|
@ -197,9 +197,9 @@ _systemctl () {
|
||||||
}
|
}
|
||||||
complete -F _systemctl 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_sessions () { 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_users () { 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_seats () { loginctl list-seats | { while read -r a b; do printf "%s\n" "$a"; done; } ; }
|
||||||
|
|
||||||
_loginctl () {
|
_loginctl () {
|
||||||
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
|
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
|
||||||
|
|
Loading…
Reference in a new issue