How do you set PowerShell's default directory?

前端 未结 13 1742
生来不讨喜
生来不讨喜 2021-01-30 01:37

Is there a way to change PowerShell\'s default location?

How do you set PowerShell\'s default working directory?

13条回答
  •  别那么骄傲
    2021-01-30 02:06

    Make this the first line in your Profile.ps1 and PowerShell Core (pwsh) will open in the directory you are currently working in:

    set-location (get-location).path

提交回复
热议问题