Taskfile bash completion in homebrew

A tip for anyone using Taskfile and Homebrew on macOS. Actually this is more of a note to self, because I didn’t pay attention to this earlier.

Homebrew has two versions of bash-completion: bash-completion and bash-completion@2. The former is meant for bash 3.x and the latter is for bash 4+.

Normally it hasn’t mattered to me till now, because most formulas set up compatible completion scripts.

But it seems Taskfile’s completion script is only compatible with bash-completion@2.

tech
Using an SSH jump host for Ansible Using UV to install Python