Change terminal in Atom-editor's Platformio-Ide-Terminal on Windows

故事扮演 提交于 2020-01-01 02:34:08

问题


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?


回答1:


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



回答2:


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



回答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.




回答4:


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.




回答5:


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



来源:https://stackoverflow.com/questions/42277302/change-terminal-in-atom-editors-platformio-ide-terminal-on-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!