Skip to content

Instantly share code, notes, and snippets.

@sadikaya
Created November 28, 2016 06:52
Show Gist options
  • Select an option

  • Save sadikaya/cd2e446cd1aa124c61cfbae982b7455b to your computer and use it in GitHub Desktop.

Select an option

Save sadikaya/cd2e446cd1aa124c61cfbae982b7455b to your computer and use it in GitHub Desktop.
Cmder inside Webstorm terminal
  1. Set an environment variable called CMDER_ROOT to your root Cmder folder (in my case C:\Program Files (x86)\Cmder). It seems to be important that this does not have quotes around it because they mess with concatenation in the init script.
  2. In your IntelliJ terminal settings, use "cmd" /k ""%CMDER_ROOT%\vendor\init.bat"" as the Shell path. The double-double-quotes are intentional, as they counteract the missing double quotes in the environment variable.
@ChiefDesigns

Copy link
Copy Markdown

Awesome and thank you for this. This solves the "java.io.IOEXception:couldn't create PTY" error

@sanchezg7

Copy link
Copy Markdown

Worked for me in Webstorm, just had to restart the application after setting the environment variable. This worked for me, thanks.

@trplfr

trplfr commented Apr 18, 2019

Copy link
Copy Markdown

If you want to use {bash::bash} in your IntelliJ terminal, use "cmd.exe" /c ""%CMDER_ROOT%\vendor\git-for-windows\bin\bash.exe"" as the Shell path.

@pastuh

pastuh commented Jun 26, 2019

Copy link
Copy Markdown

Thanks, useful :)

@ystitou

ystitou commented Oct 3, 2019

Copy link
Copy Markdown

Great (y)

@maher1719

Copy link
Copy Markdown

@praseodeveloper

Copy link
Copy Markdown

Thanks! It works fine.

I did not use the environment variable.
Instead provided
"cmd" /k ""full\path\to\vendor\init.bat""

@SinvalMAO

Copy link
Copy Markdown

Very well, tanks man, you are Great!

@wdmtech

wdmtech commented Sep 21, 2020

Copy link
Copy Markdown

Thanks!!!

@yoannk

yoannk commented Jan 8, 2021

Copy link
Copy Markdown

Worked in PhpStorm, Thank You !

@soydavidpaucar

Copy link
Copy Markdown

And how about Windows Terminal ??? I can't work with it inside :(

@manuelvegadev

Copy link
Copy Markdown

Great!

@dasauser

dasauser commented Aug 1, 2021

Copy link
Copy Markdown

Cool! Thanks!

@zayzou

zayzou commented Jan 24, 2022

Copy link
Copy Markdown

Thanks a lot ๐Ÿ˜„

@SinvalMAO

SinvalMAO commented Oct 8, 2023

Copy link
Copy Markdown

Tanks man, you saved my day

@Raphsuntei

Copy link
Copy Markdown

"cmd" /k "C:\laragon\bin\cmder\vendor\init.bat"

this works for me!

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