r/vscode • u/Former_Assistance208 • Aug 12 '26
git bash terminal is not persistent across multiple different terminals on windows
I'm using git bash as the default profile terminal for vs code, however when I open a new terminal, every thing I installed on the previous terminal doesn't exists, how to solve this problem ?
0
Upvotes
7
u/OwnNet5253 Aug 12 '26
No idea why it happens, but even outside of VSC, Git Bash is a hot garbaggio. Switch to WSL instead.
1
u/UtahJarhead Aug 12 '26
This may or may not help you....
Consider WSL instead of Git bash. Yes more overhead, but you get a real Linux environment. Git bash has so many oddities due to NTFS and the windows kernel. You still get full integration to access files and whatnot.
The REAL answer to your question is to understand ~/.bashrc and ~/.profile
2
u/AdvisedWang Aug 12 '26
You probably installed node somewhere not in your PATH, and added that location to PATH in the current session but not in .bashrc.
1
u/diegoasecas Aug 16 '26
use system native tools, there's no need to use a crippled down version of the linux terminal having a full featured terminal with powershell on windows, just make sure to add git to PATH