Skip to content

Shell Completions

Enable tab-completion for taibai commands and flags in your shell.

taibai completions [bash|zsh|fish]

The command prints a completion script to stdout. Source it once, or add the eval line to your shell's startup file so it loads automatically in every new session.


Bash

Add to ~/.bashrc:

eval "$(taibai completions bash)"

Or write to a file and source it:

taibai completions bash > ~/.bash_completion.d/taibai.bash
echo 'source ~/.bash_completion.d/taibai.bash' >> ~/.bashrc

Zsh

Add to ~/.zshrc:

eval "$(taibai completions zsh)"

If you use oh-my-zsh, drop the script into a completions directory instead:

taibai completions zsh > "${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/completions/_taibai"

Fish

Write once to Fish's completions directory — Fish sources it automatically:

taibai completions fish > ~/.config/fish/completions/taibai.fish

Options reference

Argument Description
shell Target shell: bash, zsh, or fish