Skip to content
This repository has been archived by the owner on Oct 22, 2023. It is now read-only.

batect/batect-bash-completion

batect-bash-completion

Pipeline

Shell tab completions for Bash.

Requirements

Installing

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.

Manual install with bash-completion

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.

How this works

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.