From 15d6a09b9c34b395fcd92b50d2c93041c43a3184 Mon Sep 17 00:00:00 2001 From: dickymoorebjss <128724856+dickymoorebjss@users.noreply.github.com> Date: Wed, 7 May 2025 12:08:39 +0100 Subject: [PATCH] Added instructions for updating permo path --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a7f749a..4a1d32c 100644 --- a/README.md +++ b/README.md @@ -33,8 +33,10 @@ while letting you: git clone --recurse-submodules https://github.com/dickymoore/repocopy.git cd repocopy -# 2. Add rpcp to your PATH (current session) -$env:PATH += ';' + (Get-Location) +# 2. Add rpcp to your PATH +$env:PATH += ';' + (Get-Location) # (current session) + +if ($([Environment]::GetEnvironmentVariable('PATH','User')) -split ';' -notcontains $((Get-Location).Path)) {[Environment]::SetEnvironmentVariable('PATH',"$([Environment]::GetEnvironmentVariable('PATH','User'));$((Get-Location).Path)",'User')} # (future sessions) # 3. Copy the *current* folder (default) rpcp