-
Notifications
You must be signed in to change notification settings - Fork 29.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add git-bash support to shell integration #208960
feat: add git-bash support to shell integration #208960
Conversation
Signed-off-by: Chapman Pendery <cpendery@microsoft.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
719c240
to
5703cdc
Compare
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
MaxCheckLineCount
to 10 since bash's commands often output responses in the 6-8 lines range for built in commands$
promptsareZshBashLoginArgs
to check for--login
instead of powershell's-login
areZshBashLoginArgs
to ignore any interactive args since the default args for the setting"terminal.integrated.defaultProfile.windows": "Git Bash"
is--login -i
.shellIntegration-bash.sh
to 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