Overview
hermes completion emits a shell completion script for bash, zsh, or fish. Once sourced or installed, you can press Tab to complete hermes commands, subcommands, and flags.
hermes completion [-h] [{bash,zsh,fish}]
Shells
| Shell | Description |
|---|---|
bash |
Generate a completion script for Bash (default). |
zsh |
Generate a completion script for Zsh. |
fish |
Generate a completion script for Fish. |
Common Scenarios
Bash
hermes completion bash > ~/.hermes-completion.bash
echo "source ~/.hermes-completion.bash" >> ~/.bashrc
source ~/.bashrc
Zsh
hermes completion zsh > ~/.hermes-completion.zsh
echo "source ~/.hermes-completion.zsh" >> ~/.zshrc
Fish
hermes completion fish > ~/.config/fish/completions/hermes.fish
One-shot use without saving
source <(hermes completion bash)
Tips
- Regenerate completions after updating Hermes to include any new commands or flags.
- The completion script is stateless, so you can safely source it at any time.
- For system-wide Bash completion, redirect to
/etc/bash_completion.d/hermesif you have write access.