From 43f1ddd8b8c26ad64ad15e56ba9ea48cedf3acec Mon Sep 17 00:00:00 2001 From: 29039 <61966298+29039@users.noreply.github.com> Date: Sat, 23 Mar 2024 18:30:33 +1100 Subject: [PATCH 1/2] Make the required powershell commands copy and pastable without careful selection or editing The react-syntax-highlighter for powershell is intended for ps1 scripts, not typing into the shell with an extra ">" character there, which breaks the syntax with the error: "> : The term '>' is not recognized as the name of a cmdlet," --- src/components/Home.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Home.tsx b/src/components/Home.tsx index d1bf561..ac58ba3 100644 --- a/src/components/Home.tsx +++ b/src/components/Home.tsx @@ -83,11 +83,11 @@ const Home = (): JSX.Element => { > PowerShell terminal {' '} - (version 5.1 or later) and run: + (version 5.1 or later) and from the PS C:\> prompt, run:

- {`> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -> Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression`} + {`Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser +Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression`}

For advanced installation options, check out the{' '} From b9922c579882d6d95a1c2701b20689dc675628f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gr=C3=A9goire=20Pailler?= Date: Sat, 23 Mar 2024 16:25:47 +0800 Subject: [PATCH 2/2] Update Home.tsx and fix > special character --- src/components/Home.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Home.tsx b/src/components/Home.tsx index ac58ba3..7e4ec85 100644 --- a/src/components/Home.tsx +++ b/src/components/Home.tsx @@ -83,7 +83,7 @@ const Home = (): JSX.Element => { > PowerShell terminal {' '} - (version 5.1 or later) and from the PS C:\> prompt, run: + (version 5.1 or later) and from the PS C:\> prompt, run:

{`Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser