Antigravity keeps overwriting and deleting my shell config (bash/zsh profile)

Question / Help

Hi, I’m running into a serious issue where Antigravity seems to overwrite or delete my shell config files.

What’s happening:

  • Sometimes when Antigravity crashes, or if I close my laptop while it’s running, my shell config gets wiped.
  • After this happens and I open a new terminal, my environment is basically reset and my previous aliases/paths/functions are gone.
  • I checked my shell config and saw this line:

# Added by Antigravity
export PATH="/Users/nomad/.antigravity/antigravity/bin:$PATH"

This makes me think Antigravity is editing my shell config (bash profile / zshrc), and in some failure cases it’s rewriting the whole file instead of just appending its changes.

Environment:

  • macOS (MacBook Pro)
  • Shell: zsh (using ~/.zshrc) [previously using bash profile]
  • Antigravity version: [add version here]
  • Install method: [App Store / website download / etc.]

Steps I’ve noticed:

  1. Use Antigravity normally.
  2. Sometimes it crashes, or I close the laptop without quitting it cleanly.
  3. Later, I open Terminal/iTerm.
  4. My ~/.bash_profile or ~/.zshrc is either reset or only contains the Antigravity-added lines.

Questions:

  • Is this a known issue where Antigravity rewrites shell config files?
  • Is there a safer way to integrate Antigravity with PATH without risking loss of my existing config?
  • Where can I disable Antigravity from modifying my shell config at all?

Any guidance or workarounds (like how to safely restore my config or prevent future overwrites) would be appreciated. Losing my profile repeatedly is pretty painful as a developer.

Posted Apr 3, 2026, 4:45 PM UTC

22
Loading comments…