Skip to content

Shell Completions ​

vibepg can generate completion scripts for bash, zsh, fish, PowerShell, and elvish. Tab completion covers commands, subcommands, and instance-name-shaped arguments.

Install ​

bash
vibepg completions bash > /usr/local/etc/bash_completion.d/vibepg
# or, for system-wide on Linux:
vibepg completions bash | sudo tee /etc/bash_completion.d/vibepg > /dev/null
bash
# pick any directory on your $fpath, or use the first one:
vibepg completions zsh > "${fpath[1]}/_vibepg"
# then in a fresh shell:
autoload -Uz compinit && compinit
bash
vibepg completions fish > ~/.config/fish/completions/vibepg.fish
powershell
# Append to your PowerShell profile so it loads on every session:
vibepg completions powershell >> $PROFILE
bash
vibepg completions elvish > ~/.config/elvish/lib/vibepg-completions.elv
# then in your rc.elv:
# use vibepg-completions

Verifying it works ​

Open a new shell, type vibepg (with a trailing space), and hit <Tab>. You should see all top-level subcommands. Tab-complete a flag — vibepg new --<Tab> — and you should see --ephemeral, --port, etc.

Troubleshooting ​

  • Nothing happens on <Tab> — make sure you opened a new shell after installing the completion. Old shells don't pick it up.
  • zsh: command not found: compinit — your zsh config doesn't initialize the completion system. Add autoload -Uz compinit && compinit to your .zshrc.
  • Completion file not in $fpath — echo $fpath to inspect; place the file in any directory listed there, or extend $fpath in .zshrc before compinit runs.
  • Stale completions after upgrade — re-run vibepg completions <shell> and overwrite. The script is regenerated from the live CLI definitions, so it always matches your installed version.
  • PowerShell complains about script execution — set the execution policy: Set-ExecutionPolicy -Scope CurrentUser RemoteSigned.

Released under the MIT License.