14

On Windows, default terminal for Atom's Platformio-Ide-Terminal is Powershell (at least, that is what I get without any configuration).

I would prefer a terminal using unix-type commands. I already have MINGW and CYGWIN installed.

How can I avoid opening a Powershell and opening another terminal type instead?

jvtrudel
  • 1,235
  • 3
  • 15
  • 28
  • Seems that I can set the terminal in *Settings>>Packages>>Platformio Ide Terminal>>Settings>>Shell Override*. But it open the terminal outside of atom as a new window. – jvtrudel Feb 16 '17 at 15:06
  • 1
    I was pointing to mintty.exe, a terminal emulator. Must use a shell instead. – jvtrudel Feb 16 '17 at 15:12

5 Answers5

20

Set the default shell in: Edit>>Settings>>Packages>>Platformio Ide Terminal>>Settings>>Shell Override

You can use the git's bash as proposed here as you probably already have git installed.

C:\Program Files\Git\bin\bash.exe
jvtrudel
  • 1,235
  • 3
  • 15
  • 28
  • The Shell Override option is not showing up on my screen, after I install platformio :/ any clues? – Rodrigo Duarte May 25 '21 at 13:04
  • OOps, I was looking at the wrong "platformio" extension. The Shell override option appears in platformio-ide-terminal, specifically. Silly question, sorry – Rodrigo Duarte May 25 '21 at 14:17
3

Step by Step Solution

  1. Go the Setting-> Packages -> In Search Bar, search for the platformio.
  2. Open platformio and go to Shell Override Option.

Put the following line as per as your Terminal Requirement

For cmd- C:\\WINDOWS\\System32\\cmd.exe

For Power Shell- C:\\WINDOWS\\Sysnative\\WndowsPowerShell\\v1.0\\powershell.exe

For bash- C:\\Program Files\\Git\\bin\\bash.exe or C:\\Windows\\System32\\bash.exe (depending on how you install the bash). Be Sure, that you have already install the bash into your computer.

Now, you can integrate bash, cmd, git bash, Power Shell into Atom using platformio as terminal.

Yash
  • 1,787
  • 1
  • 22
  • 23
1

For CYGWIN users, the bash executable from the following location has proved useful for setting the shell override Settings >> Packages >> Platformio Ide Terminal >> Settings >> Shell Override

C:\cygwin64\bin\bash.exe
eeasterly
  • 754
  • 8
  • 11
0

If you are now using Ubuntu for Windows 10 (downloaded from the app store), you can change it to that as well.

Ubuntu gets installed in Windows' PATH by default, so just change the default shell to:

ubuntu.exe

That's it. Just remember that to get to your code, cd to /mnt/(driveletter)/wherever/your/files/sit.

krisguy
  • 9
  • 3
0

For someone who still can't get this to work because your git bash is installed in AppData. This worked for me.

C:\Users\saurabh\AppData\Local\Programs\Git\bin\bash.exe

Saurabh
  • 9
  • 2