Shell Completion
Enable tab completion for faster CLI usage.
Automatic Installation
bash
acto completion installThis automatically detects your shell and installs completion.
Manual Installation
Bash
bash
# Generate completion script
acto completion bash > ~/.acto-completion.bash
# Add to ~/.bashrc
echo 'source ~/.acto-completion.bash' >> ~/.bashrc
# Reload
source ~/.bashrcZsh
bash
# Generate completion script
acto completion zsh > ~/.acto-completion.zsh
# Add to ~/.zshrc
echo 'source ~/.acto-completion.zsh' >> ~/.zshrc
# Reload
source ~/.zshrcFish
fish
# Generate completion script
acto completion fish > ~/.config/fish/completions/acto.fish
# Reload
source ~/.config/fish/completions/acto.fishPowerShell
powershell
# Generate completion script
acto completion powershell > $HOME\.acto-completion.ps1
# Add to profile
Add-Content $PROFILE '. $HOME\.acto-completion.ps1'
# Reload
. $PROFILEUsage
After installation, press Tab to complete:
bash
acto pr<TAB> # → acto proof
acto proof cr<TAB> # → acto proof create
acto proof create --ta<TAB> # → acto proof create --task-idTroubleshooting
Completion Not Working
- Ensure the completion script is sourced
- Check your shell configuration file
- Restart your terminal
Wrong Shell Detected
Specify shell explicitly:
bash
acto completion install --shell bash
acto completion install --shell zsh
acto completion install --shell fish
acto completion install --shell powershell