From d47c391bb7fbd55d95596ada897b2eb78e66f18b Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Fri, 3 Feb 2023 22:03:23 -0800 Subject: [PATCH] Add directions on how to use install.ps1 --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index c4272c4..0e7c8e6 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,14 @@ A [PowerShell module](https://docs.microsoft.com/en-us/powershell/module/microso ## Installation +### Using `install.ps1` + +```PowerShell +(Invoke-WebRequest 'https://raw.githubusercontent.com/ardislu/ArdisUtilities/main/install.ps1').Content | Invoke-Expression +``` + +### Manual + 1. Download the `ArdisUtilities` folder 2. In PowerShell: @@ -12,6 +20,8 @@ A [PowerShell module](https://docs.microsoft.com/en-us/powershell/module/microso Import-Module ./path/to/ArdisUtilities/ ``` +### Persistence + To persist this module on new sessions: - Copy the `ArdisUtilities` folder to any folder on `$env:PSModulePath` ([reference](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_psmodulepath)), or - Add the `Import-Module` command to your `$profile` ([reference](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles)) -- 2.47.3