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

6 lines
181 B
Bash
Raw Normal View History

_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