summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
18b754d)
18b754d3 changed the name of systemd-loginctl to loginctl, but didn't
update the bash-completion to match.
__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; } ; }
__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; } ; }
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
local verb comps
local cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]}
local verb comps
COMPREPLY=( $(compgen -W "$comps" -- "$cur") )
return 0
}
COMPREPLY=( $(compgen -W "$comps" -- "$cur") )
return 0
}
-complete -F _systemd_loginctl systemd-loginctl
+complete -F _loginctl loginctl