From: Daniel Wagner Date: Thu, 21 Sep 2023 09:03:35 +0000 (+0200) Subject: completion: add 'version' and 'help' to list X-Git-Tag: v2.6~18 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a2587cbd2eea1d0506d052356abe94cb27cb9884;p=users%2Fsagi%2Fnvme-cli.git completion: add 'version' and 'help' to list The variable containing the commands is call _cmds and not cmds, thus the tab completion didn't work for 'version' and 'help'. Signed-off-by: Daniel Wagner --- diff --git a/completions/bash-nvme-completion.sh b/completions/bash-nvme-completion.sh index 1dfccd87..fc3b49e7 100644 --- a/completions/bash-nvme-completion.sh +++ b/completions/bash-nvme-completion.sh @@ -1477,7 +1477,7 @@ _nvme_subcmds () { _cmds+=" $plugin" done - cmds+=" version help" + _cmds+=" version help" if [[ ${#words[*]} -lt 3 ]]; then COMPREPLY+=( $(compgen -W "$_cmds" -- $cur ) )