Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add powershell prompts that scripts is disabled on this system #310

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions docs/guides/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,14 @@ Add the following line to the end of your profile and save:
Invoke-Expression "$(vfox activate pwsh)"
```

If Powershell prompts:`cannot be loaded because the execution of scripts is disabled on this system`.**Open PowerShell** with **Run as Administrator**.Then, run this command in PowerShell

```shell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
# After that type Y and press Enter.
y
```

:::

::: details Clink & Cmder
Expand Down
8 changes: 8 additions & 0 deletions docs/zh-hans/guides/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,14 @@ Invoke-Item $PROFILE # 打开profile
Invoke-Expression "$(vfox activate pwsh)"
```

如果powershell提示:`在此系统上禁止运行脚本`,那么请你**以管理员身份重新运行powershell**输入如下命令

```shell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned
# 之后输入Y,按回车
y
```

:::

::: details Clink & Cmder
Expand Down