DanielBell99
DanielBell99

Reputation: 1957

PyCharm Terminal - use Git Bash

Goal: use Git Bash as Terminal in PyCharm.

How can I have a normal Bash with Git integrated Terminal in PyCharm?

File path for Git Bash: C:\Users\me\AppData\Local\Programs\Git\git-bash.exe --cd-to-home.

I apply Git Bash in PyCharm Settings: I apply Git Bash in PyCharm Settings.

However, when I click New Session (new Terminal +), it launches as a Window: enter image description here

Upvotes: 3

Views: 4175

Answers (2)

DanielBell99
DanielBell99

Reputation: 1957

This solution has also worked for me:

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

Upvotes: 0

M B
M B

Reputation: 3445

You are pointing at git-bash.exe, which is wrong. You should point at bash.exe which is located inside the bin folder. So your Shell path should be:

"C:\Users\<username>\AppData\Local\Programs\Git\bin\bash.exe" --login

using

"C:\Users\<username>\AppData\Local\Programs\Git\bin\sh.exe" --login

would also work. Also works without --login. Make sure the " are there.

Upvotes: 6

Related Questions