如何設置Cmder與您的用戶配置文件在Windows當前工作目錄中運行Windows PowerShell在Cmder啟動 10

The following steps will enable 電源外殼Cmder launch, with the path set to your %userprofile%If you have used a context menu, this will not interfere with the context menu’s functionality.

  1. Ensure 電源外殼 is the default task in Cmder.
    menu -> settings -> startup
    Ensure the specified task is Powershell and then Save settings.
    CMDER startup task

     

  2. Navigate to your Cmder installation location and right click cmder.exe and click copy.
    Cmder install location

     

  3. Go to your desktop, then right click, and then choose paste shortcut.

     

  4. Right click on the newly created shortcut and choose Properties.

     

  5. Add the following to the end of the Target property after the double quote
    Cmder.exe" /start "%userprofile%"
    單擊確定

     

Double click the Cmder shortcut and PowerShell will launch with your user profile as the present working directory.

You can also pin the short cut to the Start menu by right clicking it, and choosing Pin to Start.

發表評論