Shell Completion¶
Enable tab completion for ComfyGit CLI commands in your shell.
Overview¶
ComfyGit automatically installs completion for Bash and Zsh. Fish uses the manual setup below. Tab completion helps you:
- Autocomplete command names
- Autocomplete environment names
- Autocomplete node names
- Autocomplete workflow names
Command Reference¶
completion¶
Manage shell tab completion.
Usage:
Subcommands¶
install¶
Install tab completion for your shell.
Usage:
Automatically detects your shell (bash or zsh) and installs the appropriate completion script to your shell configuration file. If argcomplete is not available, it will be installed automatically using uv tool install.
uninstall¶
Remove tab completion from your shell.
Usage:
Removes the completion configuration from your shell configuration file.
status¶
Show tab completion installation status.
Usage:
Displays the current shell, configuration file location, argcomplete availability, and installation status.
Quick Start¶
Installation¶
Install tab completion for your current shell:
This will detect your shell automatically and install the appropriate completion script.
Check Status¶
Check if tab completion is installed:
Uninstall¶
Remove tab completion:
Supported Shells¶
- Bash - Requires bash-completion package
- Zsh - Works with default zsh completion system
- Fish - Manual argcomplete script; not managed by
cg completion install/status/uninstall
Manual Setup¶
If automatic installation doesn't work, you can set up completion manually:
Bash¶
Add to ~/.bashrc:
Zsh¶
Add to ~/.zshrc after initializing completion:
Fish¶
Run:
mkdir -p ~/.config/fish/completions
register-python-argcomplete --shell fish cg > ~/.config/fish/completions/cg.fish
Troubleshooting¶
If tab completion isn't working:
- Restart your shell or run
source ~/.bashrc(or equivalent) - Make the completion helper available:
uv tool install argcomplete - Check completion status:
cg completion status - Try manual setup if automatic installation fails