Monday, February 3, 2014

Git bash in IntelliJ IDEA 13 on Windows

One of the top features of the recent release of IntelliJ IDEA 13 is definitively a built-in command-line interface. For me, this is really great feature - especially local terminal . I don't need to abandon the IDE to work with command-line interface anymore, e.g. while working with source code management systems like Git.

On Windows machines, by default cmd.exe is used. To change it, open settings (Ctrl+Alt+s) and type Terminal:


To use Git bash I use the following shell path: "C:\Program Files (x86)\Git\bin\sh.exe" --login -i. Now when I open terminal window (Alt+F12) I see Git bash that is opened in the project's folder, so I can immediately start using it:

12 comments:

  1. Thanks, this was really helpful. Instead of using Ctrl+Alt+S to open the current project settings, I navigated to File >> Other Settings >> Default Settings... to apply this change to the default project instead of just the current one.

    ReplyDelete
  2. hmm for some reason I don't get color... though the TERM settings look right

    ReplyDelete
  3. Fantastic, this is really a game changer for me. Now I can have a similar experience in IntelliJ on Windows at Work and in IntelliJ on Mac and Linux at Home.

    Thanks.

    ReplyDelete
    Replies
    1. I must admin I use it very often and I am also happy. I also use ConnEmu on Windows more and more. It is also cool with Git Bash. Have a look here: http://blog.codeleak.pl/2014/10/conemu-windows-console-emulator-with.html

      Delete
  4. Nice, but there are auto-completion annoying sound. And it doesn't disabling with "Audible bell" unchecking.

    Just try to press Backspace in empty console. Annoying.

    There are trick with sh config to disable sound of bell, but auto-completion doesn't work after that changes.

    ReplyDelete