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