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
Copy link
Copy Markdown

trplfr commented Apr 18, 2019

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
Copy link
Copy Markdown

pastuh commented Jun 26, 2019

Thanks, useful :)

@ystitou
Copy link
Copy Markdown

ystitou commented Oct 3, 2019

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
Copy link
Copy Markdown

wdmtech commented Sep 21, 2020

Thanks!!!

@yoannk
Copy link
Copy Markdown

yoannk commented Jan 8, 2021

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
Copy link
Copy Markdown

dasauser commented Aug 1, 2021

Cool! Thanks!

@zayzou
Copy link
Copy Markdown

zayzou commented Jan 24, 2022

Thanks a lot ๐Ÿ˜„

@SinvalMAO
Copy link
Copy Markdown

SinvalMAO commented Oct 8, 2023

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