:-'Generic Commit'
Some checks failed
Dropshell Test / Build_and_Test (push) Failing after 2m40s

This commit is contained in:
Your Name
2025-05-28 20:40:24 +12:00
parent c836b26657
commit f7294e01e4
6 changed files with 75 additions and 65 deletions

View File

@ -6,8 +6,8 @@ _dropshell_completions() {
cur="${COMP_WORDS[COMP_CWORD]}"
# call dropshell to get the list of possiblities for the current argument. Supply all previous arguments.
local completions=($(dropshell autocomplete "${COMP_WORDS[@]:1:${COMP_CWORD}-1}"))
COMPREPLY=( $(compgen -W "${completions[*]}" -- ${cur}) )
mapfile -t completions < <(dropshell autocomplete "${COMP_WORDS[@]:1:${COMP_CWORD}-1}")
mapfile -t COMPREPLY < <(compgen -W "${completions[*]}" -- "$cur")
return 0
}