How tabtab manages shell completion scripts
masterTabtab uses a multi-layered approach to manage shell completions:
- SHELL Config: A single line is added to your shell's configuration file (like
~/.zshrc) to source the tabtab internal router. - Internal Router Script: Located in
~/.config/tabtab, this script acts as a frontend router. Every installed completion is registered here. - Completion Scripts: Individual scripts are created in
~/.config/tabtabfor each package. These are shell-specific (e.g., a different script for Bash vs. Fish) and are called by the router to provide the actual completion logic.
This architecture allows tabtab to manage multiple completions through a single entry point in your shell configuration.