Skip to content

Shell Completions

Grog ships with a built in completion command that can generate shell completion scripts for bash, fish, and zsh. Installing these scripts enables auto completion of target labels and patterns for the most common commands.

Terminal window
# Bash
source <(grog completion bash)
# Zsh
source <(grog completion zsh)
# Fish
source <(grog completion fish)

Add the lines above to your shell startup files (e.g. .bashrc or .zshrc) to load the completions automatically.