Shell tab completions for Bash.
- Batect v0.73 or later in your project
- Bash v3.2 or later
- bash-completion v1.3 or later
With Homebrew
brew install batect/batect/batect-bash-completion
If you haven't already, you'll need to add the appropriate configuration for Homebrew's Bash tab completion support to your ~/.bash_profile
.
The Homebrew documentation has details on what is required.
You'll need to restart Bash for the change to take effect.
If you are already using bash-completion
, place a copy of batect.bash
in your completions directory
(usually ~/.local/share/bash-completion/completions
).
You'll need to restart Bash for the change to take effect.
In order to enable multiple projects to co-exist with different versions of Batect (and corresponding different available options), the completion script in this repository acts as a proxy to the completion script generated by the appropriate version of Batect.
The original RFC for shell tab completion has further explanation.