This commit is contained in:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user