How can I use a git bash terminal profile in Visual Studio 2019?

Sushi Yeti Dev

Visual Studio 2019 has recently added a new (much-needed) terminal feature in its 16.6 version. It's really great, but I'm having a hard time integrating git bash in the profiles.

I've tried a few variations of arguments and whatnot of the following profile:

Bash Profile

But whenever I try selecting that profile, the terminal shortly displays a blank screen, then opens the default PowerShell terminal.

What am I doing wrong and how can I configure the profile correctly?

Sushi Yeti Dev

Solution I am using while waiting for a better one:

Shell Location: C:\WINDOWS\system32\cmd.exe Arguments: /k ""%VSAPPIDDIR%..\Tools\VsDevCmd.bat" & bash"

Essentially, I am launching cmd and running the "bash" command at launch, effectively nesting the bash terminal within cmd.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

How can I choose a Visual C# class template in Visual Studio 2019?

How can I clear the terminal in Visual Studio Code?

How do I use Bash on Windows from the Visual Studio Code integrated terminal?

How can I view the Git history in Visual Studio Code?

Can I use Git client with TFS - but without Visual Studio?

How can I get a unified git diff in Visual Studio Code?

Visual Studio Code: Use Git Bash (windows)

How can I rename Publish Profile in Visual Studio 2017?

How can I ignore whole git repository in visual studio code?

How do I configure Araxis Merge for use with Visual Studio Git?

How can I target Android 4.1 in Visual Studio 2019?

How to get terminal window inside Visual Studio 2017 / 2019?

How can I prevent Visual Studio (2019) from opening "VS Debug Console" and just use the old .NET Core Host console?

How do I tell Visual Studio to use WinMerge with Git?

How can i create an Azure Function in visual Studio 2019?

How can I build Visual Studio 2019 projects on Travis CI?

How can I use git bash aliases in vscode terminal?

How do I solve the Visual studio 2019 'invalid profile ms_6_5' error when building a solution?

Can I use one terminal for multiple files in Visual Studio Code?

How can I add a reference to PresentationCore in Visual Studio 2019?

Can I create a separate bash history file for each terminal profile?

How can I use Python to open "~/.bash_profile"

How do I reset my Bash Profile in Terminal to default?

How can I use FolderBrowserDialog in Visual Studio 2019?

How do I use editorconfig in Visual Studio 2019?

How Can I resolve conflicts with git command line to keep target (visual studio 2019)?

How can I debug chromium in visual studio 2019?

Can I uninstall visual studio 2017 and still use the 2017 platform toolset in visual studio 2019?

How can I use the Razor editor found in Visual Studio 2019 in Visual Studio 2022?