How to add Bash to PhpStorm – Windows

This tutorial will show you how to install and use the Git Bash terminal emulation within PhpStorm in place of the Windows terminal.

Prerequisites

You have downloaded and installed Git for Windows

Adding Git Bash to PhpStorm

Step 1 – Open PhpStorm and go to settings Ctrl+Alt+S

 How to add Bash to PhpStorm
Go to Settings, then Terminal and then Shell path

Step 2 – Click on Terminal

Step 3 – Enter “C:\Program Files\Git\bin\sh.exe”–login in Shell path under Application settings

Step 4 – Press Alt+F12 to open a terminal window and your terminal should now use the Bash emulation.