mirror of
https://github.com/clearlinux/systemd-stable.git
synced 2026-09-06 21:51:37 +00:00
bash-completion: fix completion of complete verbs
When doing 'command verb<TAB>', the arguments for verb would be
proposed, but it is too early. We should complete verb first.
https://bugs.freedesktop.org/show_bug.cgi?id=74596
(cherry picked from commit 3ce09b7da2)
Conflicts:
shell-completion/bash/busctl
shell-completion/bash/loginctl
shell-completion/bash/systemctl
shell-completion/bash/systemd-analyze
This commit is contained in:
committed by
Colin Guthrie
parent
9693c7f0bf
commit
1bb3ed6816
@@ -52,7 +52,7 @@ _localectl() {
|
||||
[X11]='set-x11-keymap'
|
||||
)
|
||||
|
||||
for ((i=0; i <= COMP_CWORD; i++)); do
|
||||
for ((i=0; i < COMP_CWORD; i++)); do
|
||||
if __contains_word "${COMP_WORDS[i]}" ${VERBS[*]}; then
|
||||
verb=${COMP_WORDS[i]}
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user