开发者

In FAR manager, How to open Powershell in current path? [closed]

开发者 https://www.devze.com 2023-02-05 19:58 出处:网络
Closed. This question does not meet S开发者_如何学编程tack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet S开发者_如何学编程tack Overflow guidelines. It is not currently accepting answers.

This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.

Closed 4 years ago.

Improve this question

In FAR manager, I can open seperate command window at the current location by just typing start. For example, Active Panel in FAR is in c:\Projects and I type "start" it opens a new console window with path c:\projects. I want to open PowerShell with current path, For instance I type PS, it opens powershell window with location set to c:\projects.

Any ideas?


One solution is with this command

start powershell.exe -noexit -command "set-location '%cd%'"


Another option is

powershell -noprofile

which has the side effect of not loading your profile, but since your profile contains code that sets a specific path ...


type dot '.' and press shift+Enter.

0

精彩评论

暂无评论...
验证码 换一张
取 消