fix: Make cmd a local var in bash completion

This commit is contained in:
Fredrik Jansson 2023-01-23 17:01:53 +01:00
parent 9f4f341604
commit 8b455d28e7

View file

@ -22,7 +22,7 @@ impl Generator for Bash {
buf,
format!(
"_{name}() {{
local i cur prev opts cmds
local i cur prev opts cmd
COMPREPLY=()
cur=\"${{COMP_WORDS[COMP_CWORD]}}\"
prev=\"${{COMP_WORDS[COMP_CWORD-1]}}\"