From a4f5f498bcbae2d05a6c47e6491d3c396050406f Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 6 Jul 2026 08:27:27 +0200 Subject: [PATCH 1/2] Standardize README landing page --- README.md | 86 +++++++------------------------------------------------ 1 file changed, 11 insertions(+), 75 deletions(-) diff --git a/README.md b/README.md index 73bd944..eddb8f8 100644 --- a/README.md +++ b/README.md @@ -1,91 +1,27 @@ -# PATH +# Path -A PowerShell module to manage the PATH environment variable on Windows. - -## Prerequisites - -This module only supports Windows operating systems. +Path is a PowerShell module for managing the PATH environment variable on Windows. ## Installation -To install the module simply run the following command in a PowerShell terminal. - -```powershell -Install-PSResource -Name PATH -Import-Module -Name PATH -``` - -## Usage - -You can use the module to Get, Add, Remove and Repair the PATH environment variable. - -### Get the PATH environment variable - -The `Get-EnvironmentPath` cmdlet returns the PATH environment variable. - -```powershell -Get-EnvironmentPath -``` - -To get the PATH environment variable for the system, use the `-Scope AllUsers` parameter. - -```powershell -Get-EnvironmentPath -Scope AllUsers -``` - -### Add a directory to the PATH environment variable - -The `Add-EnvironmentPath` cmdlet adds a directory to the PATH environment variable. - -```powershell -Add-EnvironmentPath -Path 'C:\Program Files\MyApp' -``` - -To add a directory to the PATH environment variable for the system, use the `-Scope AllUsers` parameter. +Install the module from the PowerShell Gallery: ```powershell -Add-EnvironmentPath -Path 'C:\Program Files\MyApp' -Scope AllUsers +Install-PSResource -Name Path +Import-Module -Name Path ``` -### Remove a directory from the PATH environment variable +## Documentation -The `Remove-EnvironmentPath` cmdlet removes a directory from the PATH environment variable. - -```powershell -Remove-EnvironmentPath -Path 'C:\Program Files\MyApp' # Tab completion is supported -``` +Documentation is published at [psmodule.io/Path](https://psmodule.io/Path/). -To remove a directory from the PATH environment variable for the system, use the `-Scope AllUsers` parameter. +Use PowerShell help and command discovery for module details: ```powershell -Remove-EnvironmentPath -Path 'C:\Program Files\MyApp' -Scope AllUsers -``` - -### Repair the PATH environment variable - -The `Repair-EnvironmentPath` cmdlet repairs the PATH environment variable by removing duplicate entries and non-existing directories. - -```powershell -Repair-EnvironmentPath -``` - -To repair the PATH environment variable for the system, use the `-Scope AllUsers` parameter. - -```powershell -Repair-EnvironmentPath -Scope AllUsers +Get-Command -Module Path +Get-Help -Examples ``` ## Contributing -Coder or not, you can contribute to the project! We welcome all contributions. - -### For Users - -If you don't code, you still sit on valuable information that can make this project even better. If you experience that the -product does unexpected things, throw errors or is missing functionality, you can help by submitting bugs and feature requests. -Please see the issues tab on this project and submit a new issue that matches your needs. - -### For Developers - -If you do code, we'd love to have your contributions. Please read the [Contribution guidelines](CONTRIBUTING.md) for more information. -You can either help by picking up an existing issue or submit a new one if you have an idea for a new feature or improvement. +Issues and pull requests are welcome. Please use the repository issue tracker to report bugs, request features, or discuss improvements. From af6276e168cd9f313d52eeff4a753d48f7463a8f Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 6 Jul 2026 10:32:00 +0200 Subject: [PATCH 2/2] Address Copilot README review --- README.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index eddb8f8..cf69732 100644 --- a/README.md +++ b/README.md @@ -1,25 +1,25 @@ -# Path +# PATH -Path is a PowerShell module for managing the PATH environment variable on Windows. +PATH is a PowerShell module for managing the PATH environment variable on Windows. ## Installation Install the module from the PowerShell Gallery: ```powershell -Install-PSResource -Name Path -Import-Module -Name Path +Install-PSResource -Name PATH +Import-Module -Name PATH ``` ## Documentation -Documentation is published at [psmodule.io/Path](https://psmodule.io/Path/). +Documentation is published at [psmodule.io/PATH](https://psmodule.io/PATH/). Use PowerShell help and command discovery for module details: ```powershell -Get-Command -Module Path -Get-Help -Examples +Get-Command -Module PATH +Get-Help Get-EnvironmentPath -Examples ``` ## Contributing