feat: add git-bash support to shell integration#208960
feat: add git-bash support to shell integration#208960Tyriar merged 3 commits intomicrosoft:mainfrom cpendery:feat/git-bash-shell-integration
Conversation
Signed-off-by: Chapman Pendery <[email protected]>
Tyriar
left a comment
There was a problem hiding this comment.
Very nice 👏
How confident are you in the reliability of this happening automatically? We may want to make it opt-in via a setting for git bash for a month depending on the thinking here.
I think it makes sense to make it opt in. The sticky scroll isn't reliably working (it works roughly 80% of the time when testing) and if users have a different prompt (not |
Tyriar
left a comment
There was a problem hiding this comment.
Looks pretty solid to me, let's enable it by default for April in Insiders and if there are reports about something being broken I can add an opt-in setting for it.
Ah sorry I missed this before I just pushed the opt-in setting. I reverted that change |
|
First of all, @cpendery, thanks for PR! Eager to check it when it will be in Insiders. Another question: should |
|
@IllusionMH yep, thanks for pointing that out. I'll fix it now |
Adds support for shell integration to Git Bash when using the default prompt & includes the following tweaks
MaxCheckLineCountto 10 since bash's commands often output responses in the 6-8 lines range for built in commands$promptsareZshBashLoginArgsto check for--logininstead of powershell's-loginareZshBashLoginArgsto ignore any interactive args since the default args for the setting"terminal.integrated.defaultProfile.windows": "Git Bash"is--login -i.shellIntegration-bash.shto avoid sending a command complete OSC when the shell first starts up as this leads to bad marker placements on new Git Bash shells.gitBashShellIntegration.mp4
Closes #143769