I'm having a really strange problem. Tmux is exporting an environment variable that I used to have exported in my
~/.bashrc, but which I have since removed (let's just call this
$MYSTERIOUS_ENV_VAR. When I'm in a tmux session and I run
echo $MYSTERIOUS_ENV_VAR, it continues to output the path that I used to have exported in
~/.bashrc. However, when I run this same
echo command in a normal shell (not in tmux), it gives me back nothing, which is what I'd expect.
I've checked my tmux configuration and my shell startup files and I'm not exporting this anywhere, so I'm really confused about where it's coming from - to be thorough, these are the files I have checked:
If it helps, the environment variable that I'm exporting is
$PASSWORD_STORE_DIR, which is used for the open source password management program, pass. I used to have it point to a custom location, but I removed the export so that my passwords would save to the default location,
I feel like I've done something silly and that it's a simple problem, but cannot seem to figure out what it is. Any help would be very much appreciated!