Yes, it’s the same folder as your Documents, Downloads, and Desktop. Git Bash looks for .bashrc directly in your Windows user profile.
C:\Users\YourWindowsUsername\.bashrc
And for the love of automation—back up your .bashrc before experimenting. One wrong PS1 variable can turn your prompt into a binary novel. bashrc file location windows 11
| Tool | File System | .bashrc lives in | |------|-------------|--------------------| | | Virtual Linux | \\wsl.localhost\Ubuntu\home\username\ | | Git Bash | Native Windows | C:\Users\username\ | | MSYS2 | Hybrid | C:\msys64\home\username\ | Yes, it’s the same folder as your Documents,
For decades, the humble .bashrc file was the exclusive domain of Linux and macOS users—a hidden fortress of aliases, custom prompts, and PATH exports. But with Windows 11 embracing the Linux ecosystem like never before, a new question haunts developers: Where does my .bashrc actually live? One wrong PS1 variable can turn your prompt
C:\msys64\home\YourWindowsUsername\.bashrc (for MSYS2)