mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-22 04:51:12 +02:00
Merge f268306466 into cb64103161
This commit is contained in:
commit
67fe856b93
2 changed files with 38 additions and 0 deletions
18
plugins/antigravity/README.md
Normal file
18
plugins/antigravity/README.md
Normal 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` |
|
||||||
20
plugins/antigravity/antigravity.plugin.zsh
Normal file
20
plugins/antigravity/antigravity.plugin.zsh
Normal 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'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue