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.

@CKhemmar
Copy link

CKhemmar commented Feb 6, 2021

Thank you very much!

@a-c1998
Copy link

a-c1998 commented Apr 15, 2021

Thanks!

@Chernukha21
Copy link

Thanks!

@tsundara
Copy link

Note that :

  • You have to use : C:\Users\youruserid\AppData\Local\Programs\Git\bin\bash.exe
  • Do NOT use : C:\Users\youruserid\AppData\Local\Programs\Git\git-bash.exe

@AnastasiiaVashchuk
Copy link

thankss!!!!!!

@Jennywh
Copy link

Jennywh commented Jul 20, 2021

Thanks!

@bikashKatwal
Copy link

thanks

@igorzinar
Copy link

Thank you !!!!!

@anasbakro
Copy link

Thank you !!!!!

@rlarin
Copy link

rlarin commented Nov 15, 2021

Thanks! 👍

@rlaace423
Copy link

Thanks. I've used only "sh.exe" and it's working perfectly. What's the meaning of --login -i ?

Screenshot_11

It source your .bash_profile.

@fedorgerasimov
Copy link

fedorgerasimov commented Feb 8, 2022

It works. Thank you!

@bamajap
Copy link

bamajap commented Mar 12, 2022

Just an FYI, but an alias for --login -i (interactive login) is to simply specify -li

@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