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.

  • Paul Troncone

How to Add Git Bash and Cygwin to Windows Terminal

Updated: May 8

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:


C:\cygwin64\Cygwin.bat


The default path for the icon is:


C:\cygwin64\Cygwin.ico


Links and Resources

513 views1 comment

Recent Posts

See All