Skip to content

bhatti completion

Generate a shell completion script.

bhatti completion <bash | zsh | fish>

Prints the completion script for the requested shell to stdout. Save it to the right place for your shell, restart, and tab-completion is enabled.

Sandbox-name completion uses a local cache (/tmp/bhatti-completions-<uid>), populated by create, destroy, and list. It never hits the network, so completions are instant and work offline. The cache may be slightly stale right after another machine creates a sandbox; running bhatti list refreshes it.

Terminal window
# System-wide
bhatti completion bash | sudo tee /etc/bash_completion.d/bhatti > /dev/null
# Or per-user (no sudo)
echo 'source <(bhatti completion bash)' >> ~/.bashrc
Terminal window
bhatti completion zsh > "${fpath[1]}/_bhatti"
# Or simpler
echo 'source <(bhatti completion zsh)' >> ~/.zshrc
Terminal window
bhatti completion fish > ~/.config/fish/completions/bhatti.fish

This command takes no flags besides the positional shell argument.

  • bhatti setupsetup detects your shell and prints the right snippet automatically.