All Projects → Jaykul → Environment

Jaykul / Environment

Licence: MIT license
A module for working with Environment Variables and especially Path variables in a cross-platform way

Programming Languages

powershell
5483 projects

The Environment PowerShell module is a module for dealing with Paths and Environment variables.

  • Set-EnvironmentVariable allows you to set an Environment variable permanently at the Machine or User level, or temporarily at the process level.
  • Select-UniquePath allows you to de-dupe an array of path strings
  • Add-Path uses the first two to add folders to path variables like $Env:PSModulePath or $Env:PATH without duplication
  • Set-AliasToFirst searches a list of paths to find the first instance of an app and create an alias pointed to it (allowing you to avoid adding folders to the environment Path variable for a single application).
  • Get-SpecialFolder helps Windows users find special folders (like the user's desktop)
  • Trace-Message writes verbose (or debug or warning) messages with timestamps for script timing
Install-Module Environment
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].