Platformio-atom-ide-terminal: How can I use Cmder on Windows 7?

Created on 4 Jul 2017  路  4Comments  路  Source: platformio/platformio-atom-ide-terminal

I found a couple of older how-to's on using Cmder instead of Powershell or cmd.exe but I can't get it to work for the life of me. I was following this, http://thebar.cc/atom-editor-cmder/

I'm able to get cmd.exe to run in Atom just fine but that batch file won't execute and I don't know enough batch scripting to know what I'm doing wrong. If I just set the Shell Override option to C:\cmder\Cmder.exe then it just opens Cmder window outside of Atom. Can anyone point me in the right direction?

question workaround posted

Most helpful comment

You don't need a .bat

Simply add CMDER_ROOT to your env variables with the path you installed it.
You must also add this path to the PATH env var + the /bin path
I'd advice to do that manually in windows to avoid duplicate entries in PATH (instead of SET PATH = in terminal)

then in ATOM :
capture

i figured this just by looking inside init.bat: it needs essentially %CMDER_ROOT% and %CMDER_ROOT%/bin

All 4 comments

So what you want to do is.

  1. set shell overwrite to C:\Windows\System32\cmd.exe
  2. set the autorun command to the batch file that you made when following that tutorial

image

image

Works for me, but you need to remove double quotes (") in the init.bat line

@echo off
SET CMDER_ROOT=C:\cmder
%CMDER_ROOT%\vendor\init.bat

You don't need a .bat

Simply add CMDER_ROOT to your env variables with the path you installed it.
You must also add this path to the PATH env var + the /bin path
I'd advice to do that manually in windows to avoid duplicate entries in PATH (instead of SET PATH = in terminal)

then in ATOM :
capture

i figured this just by looking inside init.bat: it needs essentially %CMDER_ROOT% and %CMDER_ROOT%/bin

On other hand, platformIO wrapped cmder seems to ignore specific commands like npm run my-script, or touch myFile.js, while hte "real" cmder executes these flawlessly.

Why ?

Was this page helpful?
0 / 5 - 0 ratings