Skip to content

Instantly share code, notes, and snippets.

@gamesguru
Last active January 10, 2026 23:19
Show Gist options
  • Select an option

  • Save gamesguru/2e116309d79eb53a2bd068674488931a to your computer and use it in GitHub Desktop.

Select an option

Save gamesguru/2e116309d79eb53a2bd068674488931a to your computer and use it in GitHub Desktop.
[bug-fix] .bashrc snippet allowing Antigravity/gemini-cli to see standard output
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
if [[ -n "$ANTIGRAVITY_AGENT" ]]; then
export PS1='$ '
unset HISTFILE
unset PROMPT_COMMAND
if [ -z "$ANTIGRAVITY_RECURSION" ]; then
# avoids a loop-crash, in case your ~/.profile calls ~/.bashrc
export ANTIGRAVITY_RECURSION=1
# pure environment, no interactive fluff
source ~/.profile
fi
# skip the rest of the .bashrc and avoid issues
return
fi
# ... rest of your .bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment