Skip to content

Instantly share code, notes, and snippets.

@sadikaya
Created November 28, 2016 06:52
Show Gist options
  • Save sadikaya/cd2e446cd1aa124c61cfbae982b7455b to your computer and use it in GitHub Desktop.
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.
@sanchezg7
Copy link

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

@trplfr
Copy link

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

pastuh commented Jun 26, 2019

Thanks, useful :)

@ystitou
Copy link

ystitou commented Oct 3, 2019

Great (y)

@maher1719
Copy link

@praseodeveloper
Copy link

Thanks! It works fine.

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

@SinvalMAO
Copy link

Very well, tanks man, you are Great!

@wdmtech
Copy link

wdmtech commented Sep 21, 2020

Thanks!!!

@yoannk
Copy link

yoannk commented Jan 8, 2021

Worked in PhpStorm, Thank You !

@soydavidpaucar
Copy link

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

@manuelvegadev
Copy link

Great!

@dasauser
Copy link

dasauser commented Aug 1, 2021

Cool! Thanks!

@zayzou
Copy link

zayzou commented Jan 24, 2022

Thanks a lot 😄

@SinvalMAO
Copy link

SinvalMAO commented Oct 8, 2023

Tanks man, you saved my day

@Raphsuntei
Copy link

"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