Ensure .bashrc is run?
It seems like macOS bash doesn't read .bashrc out of .bash_profile by default: https://github.com/teaxyz/cli/issues/648
We should consider populating .bash_profile instead.
Ugh, no: https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html
login shells and non-login shells run a disjoint set of files, unless .bash_profile calls .bashrc specifically. It seems beyond our scope to ensure that. :/
we could add to both.
I considered briefly. Might be ok, if we have enough traps. Seems wrong to run twice for most configurations.
What a very weird and unlikable design choice.
all the tests I've tried suggest running twice is safe. But it is an extra ~100ms per tea instantiation until we are rust.
I mean, you can do:
if [[ $TEA_HAS_RUN -ne 1 ]]; then
tea --magic | do
export TEA_HAS_RUN=1
fi