apenwarr-redo/contrib/bash_completion.d/redo

12 lines
213 B
Text

_redo_completions()
{
local cur="${COMP_WORDS[COMP_CWORD]}"
local targets=$(
for t in $cur*.do; do
echo "${t%.do}"
done
)
COMPREPLY=($(compgen -W "$targets" $cur))
}
complete -F _redo_completions redo