top of page
book of spells.webp

Start your journey towards mastering the CLI with our FREE Command Line Book of Spells.

By entering your email address you agree to receive emails from Command Line Wizardry. We'll respect your privacy and you can unsubscribe at any time.

  • Writer's picturePaul Troncone

How to Add Git Bash and Cygwin to Windows Terminal

Updated: May 7, 2021

When you install Git for Windows it comes prepacked with Git Bash, a Linux terminal emulator. Git Bash is particularly useful because it lets you run both Linux and Windows commands from the same terminal and access the underlying Windows file system. You can easily add this emulator to Windows Terminal by editing a few simple settings.

1. First open Windows Terminal and then select "Settings" from the drop-down menu.

2. Next click "Add new" from the left menu to add a new profile.

3. Enter "Git Bash" or a similar title in the "Name" field.

4. Enter the path to the Git Bash executable in the "Command Line" field. The default path is:

C:\Program Files\Git\bin\bash.exe

5. Enter the path to the Git for Windows icon in the "Icon" field. The default path is:

C:\Program Files\Git\mingw64\share\git\git-for-windows.ico

6. Click "Save"

Now you can open Git Bash in a new tab or pane as normal in Windows Terminal.

Adding Cygwin to Windows Terminal

You can also add Cygwin to Windows Terminal using the same procedure. The default path for the Cygwin executable is:


The default path for the icon is:


Links and Resources

24,670 views1 comment

Recent Posts

See All

1 Comment

Philip Ryan
Philip Ryan
Sep 07, 2021

Thanks for the tip!. Here's my cygwin profile entry:

{ // Make changes here to the cygwin profile "guid": "{95d6bb1e-e41d-4afd-abc8-919cb0ed4de2}", // make your own GUID "name": "cygwin", "startingDirectory" : "C:/cygwin64/home/<<username>>", // YOUR username "commandline": "C:/cygwin64/cygwin.bat", "icon": "C:/cygwin64/Cygwin.ico", "fontFace" : "Consolas", "fontSize" : 12, "historySize" : 10000, "hidden": false }

bottom of page