Shell Completions¶
Enable tab-completion for taibai commands and flags in your shell.
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:
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:
If you use oh-my-zsh, drop the script into a completions directory instead:
Fish¶
Write once to Fish's completions directory — Fish sources it automatically:
Options reference¶
| Argument | Description |
|---|---|
shell |
Target shell: bash, zsh, or fish |