Last active
January 10, 2026 23:19
-
-
Save gamesguru/2e116309d79eb53a2bd068674488931a to your computer and use it in GitHub Desktop.
[bug-fix] .bashrc snippet allowing Antigravity/gemini-cli to see standard output
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # ~/.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