https://github.com/kakkun61/powershell-path-switcher
Path Environment Variable Quick Switcher
https://github.com/kakkun61/powershell-path-switcher
powershell
Last synced: 5 months ago
JSON representation
Path Environment Variable Quick Switcher
- Host: GitHub
- URL: https://github.com/kakkun61/powershell-path-switcher
- Owner: kakkun61
- License: gpl-3.0
- Created: 2021-08-10T07:52:03.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-09-01T04:32:37.000Z (over 4 years ago)
- Last Synced: 2025-04-05T02:12:56.297Z (10 months ago)
- Topics: powershell
- Language: PowerShell
- Homepage: https://www.powershellgallery.com/packages/path-switcher/
- Size: 19.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- Funding: .github/FUNDING.yml
- License: COPYING
Awesome Lists containing this project
README
# powershell-path-switcher
[](https://github.com/kakkun61/powershell-path-switcher/actions?query=workflow%3Ainstall) [](https://github.com/kakkun61/powershell-path-switcher/actions?query=workflow%3Alint) [](https://www.powershellgallery.com/packages/path-switcher/) [](https://github.com/sponsors/kakkun61)
Path Environment Variable Quick Switcher.
https://user-images.githubusercontent.com/282593/130179275-62a876d7-4e93-488a-93b8-7688535251d6.mp4
## Install
Invoke the following commands to install this.
```PowerShell
> Install-Module path-switcher
> Import-Module path-switcher
```
### HEAD
If you want to use HEAD, follow this instruction.
```PowerShell
> 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:
```yaml
# local configuration
foo: foo
```
```yaml
# user global configuration
bar: bar
```
```yaml
# system global configuration
bar: buzz
```
you get:
```yaml
foo: foo
bar: bar
```
`bar: buzz` is overwritten.