Skip to content

Commit

Permalink
completion: add 'version' and 'help' to list
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
igaw committed Sep 21, 2023
1 parent 3735276 commit a2587cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion completions/bash-nvme-completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) )
Expand Down

0 comments on commit a2587cb

Please sign in to comment.