depot/third_party/nixpkgs/pkgs/development/interpreters/babashka/completions/bb.bash

5 lines
181 B
Bash

_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