Skip to content

Instantly share code, notes, and snippets.

@sadikaya
Last active February 13, 2024 01:23
Show Gist options
  • Star 73 You must be signed in to star a gist
  • Fork 9 You must be signed in to fork a gist
  • Save sadikaya/f5fa699c435ebfafece2fb7d982bcdb5 to your computer and use it in GitHub Desktop.
Save sadikaya/f5fa699c435ebfafece2fb7d982bcdb5 to your computer and use it in GitHub Desktop.
git bash inside Webstorm terminal

Go to File -> Settings -> Tools -> Terminal and change Shell path based on the the installed git version.

for 64bit:

"C:\Program Files\Git\bin\sh.exe" --login -i

for 32bit:

"C:\Program Files (x86)\Git\bin\sh.exe" --login -i

Don't forget the quotes around the command.

@OrShalmayev
Copy link

Thanks

@Hkrie
Copy link

Hkrie commented Apr 4, 2022

Thanks

@italosantana
Copy link

using the path - /bin/bash - works well...

if you click in arrow, show some terminal options :)

@hmachefe
Copy link

hmachefe commented Jan 30, 2023

Hi there, nice work, thanks a lot. Very useful for WIN32 developers.

However, aliases are ignored after git bash based terminal is started from WebStorm

C:\Users\yourUser.bash_profile is not executed by default...
not C:\Program Files\Git\etc\profile.d\aliases.sh ...

I don't know how to make aliases be taken into account. Any clue ?

@NadieinOleh
Copy link

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment