문제

I'm a big Console2 fan, and I've recently been introduced to the power of PowerShell. Is it possible to have the latter (aka the PowerShell interpretive shell) inside the former?

도움이 되었습니까?

해결책

In Console2 settings, set the shell to:

%SystemRoot%\syswow64\WindowsPowerShell\v1.0\powershell.exe

Because for something this simple a blog post is not an answer.

다른 팁

Yeah, that is what I use. ( Update - Nowadays, I use ConEmu)

Refer to this excellent post from Scott Hanselman - http://www.hanselman.com/blog/Console2ABetterWindowsCommandPrompt.aspx

Additionally, if you want an even better user experience while working with Console2+PowerShell duo, you can create a link to the Console2 executable, putting the following into the 'Shortcut'>'Target' field:

"%windir%\system32\cmd.exe /c start c:\dir-with-console2\Console.exe"

Also, set the 'Run' option to 'Minimized' on the same tab.

Now when you add the directory containing this link to the PATH environment variable ('System Properties'>'Advanced') you'll get yourself a pretty nice "feature", namely no matter where you'll run this link from, it will always set your working directory for Powershell to the "current one" (the one you have run the link from - similarly to how cmd behaves).

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top