]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
completion: add 'version' and 'help' to list
authorDaniel Wagner <dwagner@suse.de>
Thu, 21 Sep 2023 09:03:35 +0000 (11:03 +0200)
committerDaniel Wagner <wagi@monom.org>
Thu, 21 Sep 2023 09:06:22 +0000 (11:06 +0200)
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 <dwagner@suse.de>
completions/bash-nvme-completion.sh

index 1dfccd87703da14c036b811c0e878a3c6fbd383a..fc3b49e7130d6c6e83d341aef14f2e7e3494fffb 100644 (file)
@@ -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 ) )