/powershell-path-switcher

Path Environment Variable Quick Switcher

Primary LanguagePowerShellGNU General Public License v3.0GPL-3.0

powershell-path-switcher

GitHub Actions: install GitHub Actions: lint PowerShell Gallery Sponsor

Path Environment Variable Quick Switcher.

JFyT6Gn0gm2n2m60.mp4

Install

Invoke the following commands to install this.

> Install-Module path-switcher
> Import-Module path-switcher

HEAD

If you want to use HEAD, follow this instruction.

> git clone git@github.com:kakkun61/powershell-path-switcher.git
> Import-Module .\powershell-path-switcher\path-switcher.psd1 # -Force option may be necessary

Configuration

This module treats three types of configurations:

  • local configuration
  • user global configuration
  • system global configuration

Local configuration

A local configuration is named powershell-path-switcher.yaml and located at the current working directory or its parents recursively.

User global configuration

A user global configuration is named config.yaml and located at $Env:APPDATA\powershell-path-switcher.

System global configuration

A system global configuration is named config.yaml and located at $Env:ProgramData\powershell-path-switcher.

Overwriting

When the configurations have the same keys, upper ones overwrite.

For example there are following configurations:

# local configuration
foo: foo
# user global configuration
bar: bar
# system global configuration
bar: buzz

you get:

foo: foo
bar: bar

bar: buzz is overwritten.