atom-open-terminal-here icon indicating copy to clipboard operation
atom-open-terminal-here copied to clipboard

Should default to opening PowerShell on Windows 10 instead of CMD.exe

Open Peteous opened this issue 7 years ago • 3 comments

On Windows 10, the OS suggests/prefers that you use PowerShell as a replacement for CMD.exe. This package, however, only opens CMD.exe, even if you have Windows set up to open PowerShell instead of CMD.exe. It would be great if you could fix this.

It would also be great if you could give the option to open the new Bash on Ubuntu on Windows shell that is available in Windows 10.

Peteous avatar May 19 '17 16:05 Peteous

Thanks for your report, @Peteous As a quick fix, in the open-terminal-here settings, you can set the Command to a different one than the default start /D "%cd%" cmd.

Long term, we should modify the platform specific switch for the default command and check the Windows version. Since testing on Windows is a little more involving for me, I'm looking forward to any pull request. :)

blueimp avatar Jun 03 '17 10:06 blueimp

I've just replaced cmd with the path to Git Bash in .atom\packages\open-terminal-here\index.coffee

    # defaultCommand = 'start /D "%cd%" cmd'
    defaultCommand = 'start /D "%cd%" D:\\Soft\\DEV\\Git\\bin\\sh.exe --login -i'

and it works. But it really would be great to have an option for that.

Anyway thanks for plugin! Now work in Atom become even more enjoyable (-:

yanakey avatar Dec 25 '17 00:12 yanakey

@yanakey That‘s cool

youngjuning avatar Apr 07 '18 03:04 youngjuning