mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-05-29 04:53:17 +02:00
feat: add Google Antigravity CLI plugin
This commit is contained in:
parent
cb64103161
commit
f268306466
2 changed files with 38 additions and 0 deletions
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