feat: add Google Antigravity CLI plugin

This commit is contained in:
Daniel Borcherding 2026-05-19 19:05:42 -06:00
commit f268306466
No known key found for this signature in database
2 changed files with 38 additions and 0 deletions

View file

@ -0,0 +1,18 @@
# Antigravity
This plugin adds completion for the [Google Antigravity CLI](https://antigravity.google/docs/cli-features), as well as a few aliases for common commands.
To use it, add `antigravity` to the plugins array in your zshrc file:
```zsh
plugins=(... antigravity)
```
## Aliases
| Alias | Command |
| --- | --- |
| `agv` | `antigravity` |
| `agvi` | `antigravity init` |
| `agvb` | `antigravity build` |
| `agvd` | `antigravity deploy` |

View file

@ -0,0 +1,20 @@
# Autocompletion for the Google Antigravity CLI (antigravity).
if (( ! $+commands[antigravity] )); then
return
fi
# If the completion file doesn't exist yet, we need to autoload it and
# bind it to `antigravity`. Otherwise, compinit will have already done that.
if [[ ! -f "$ZSH_CACHE_DIR/completions/_antigravity" ]]; then
typeset -g -A _comps
autoload -Uz _antigravity
_comps[antigravity]=_antigravity
fi
antigravity completion zsh >| "$ZSH_CACHE_DIR/completions/_antigravity" &|
# Aliases
alias agv='antigravity'
alias agvi='antigravity init'
alias agvb='antigravity build'
alias agvd='antigravity deploy'