Git bash disrespecting profiles #5097

Open
opened 2026-01-31 00:04:57 +00:00 by claunia · 0 comments
Owner

Originally created by @JasperRev on GitHub (Nov 21, 2019).

Originally assigned to: @DHowett-MSFT on GitHub.

Environment

windows 1909 build 18363

Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd]
Windows Terminal version (if applicable):

Any other software?

no

Steps to reproduce

I've added this to my profiles.json
{
"guid": "{00000000-0000-0000-ba54-000000000002}",
"acrylicOpacity" : 0.75,
"closeOnExit" : true,
"colorScheme" : "Campbell",
"commandline" : ""%PROGRAMFILES%\git\usr\bin\bash.exe" -i -l",
"cursorColor" : "#FFFFFF",
"cursorShape" : "bar",
"fontFace" : "Consolas",
"fontSize" : 10,
"historySize" : 9001,
"icon" : "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png",
"name" : "Bash",
"padding" : "0, 0, 0, 0",
"snapOnInput" : true,
"startingDirectory" : "%USERPROFILE%",
"useAcrylic" : true
}
launch git bash with login option

Expected behavior

Be able to see my normal stuff from my ~/.bash_profile. In my case aliases.

Actual behavior

I dont see any of my aliases. It almost feels like the command line args are not being passed to bash. Or, the starting directory is not being passed. If there is a work around, i will do that. i tried creating a .bashrc but this didn't do anything either.

Originally created by @JasperRev on GitHub (Nov 21, 2019). Originally assigned to: @DHowett-MSFT on GitHub. <!-- 🚨🚨🚨🚨🚨🚨🚨🚨🚨🚨 I ACKNOWLEDGE THE FOLLOWING BEFORE PROCEEDING: 1. If I delete this entire template and go my own path, the core team may close my issue without further explanation or engagement. 2. If I list multiple bugs/concerns in this one issue, the core team may close my issue without further explanation or engagement. 3. If I write an issue that has many duplicates, the core team may close my issue without further explanation or engagement (and without necessarily spending time to find the exact duplicate ID number). 4. If I leave the title incomplete when filing the issue, the core team may close my issue without further explanation or engagement. 5. If I file something completely blank in the body, the core team may close my issue without further explanation or engagement. All good? Then proceed! --> <!-- This bug tracker is monitored by Windows Terminal development team and other technical folks. **Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing this GitHub issue. If this is an application crash, please also provide a Feedback Hub submission link so we can find your diagnostic data on the backend. Use the category "Apps > Windows Terminal (Preview)" and choose "Share My Feedback" after submission to get the link. Please use this form and describe your issue, concisely but precisely, with as much detail as possible. --> # Environment windows 1909 build 18363 ```none Windows build number: [run `[Environment]::OSVersion` for powershell, or `ver` for cmd] Windows Terminal version (if applicable): Any other software? ``` no # Steps to reproduce I've added this to my profiles.json { "guid": "{00000000-0000-0000-ba54-000000000002}", "acrylicOpacity" : 0.75, "closeOnExit" : true, "colorScheme" : "Campbell", "commandline" : "\"%PROGRAMFILES%\\git\\usr\\bin\\bash.exe\" -i -l", "cursorColor" : "#FFFFFF", "cursorShape" : "bar", "fontFace" : "Consolas", "fontSize" : 10, "historySize" : 9001, "icon" : "ms-appx:///ProfileIcons/{0caa0dad-35be-5f56-a8ff-afceeeaa6101}.png", "name" : "Bash", "padding" : "0, 0, 0, 0", "snapOnInput" : true, "startingDirectory" : "%USERPROFILE%", "useAcrylic" : true } launch git bash with login option # Expected behavior Be able to see my normal stuff from my ~/.bash_profile. In my case aliases. # Actual behavior I dont see any of my aliases. It almost feels like the command line args are not being passed to bash. Or, the starting directory is not being passed. If there is a work around, i will do that. i tried creating a .bashrc but this didn't do anything either.
claunia added the Needs-Tag-FixNeeds-Attention labels 2026-01-31 00:04:57 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#5097