Glory to Robots! 🤖 Special thanks to Antigravity and Gemini for making this possible.
Store the completion script in a standard location, for example ~/.bash_completion.d/:
mkdir -p ~/.bash_completion.d
cp pre-commit-completion.bash ~/.bash_completion.d/Add the following to your ~/.bashrc (Linux) or ~/.bash_profile (macOS):
# Load pre-commit completion
if [ -f ~/.bash_completion.d/pre-commit-completion.bash ]; then
. ~/.bash_completion.d/pre-commit-completion.bash
fiRestart your terminal or run:
source ~/.bash_profile # or ~/.bashrc