_bb_tasks() { COMPREPLY=( $(compgen -W "$(bb tasks |tail -n +3 |cut -f1 -d ' ')" -- ${COMP_WORDS[COMP_CWORD]}) ); } # autocomplete filenames as well complete -f -F _bb_tasks bb