2020-09-16 15:57:55 +00:00
# PowerShell Scripts
2020-09-16 14:56:03 +00:00
2021-06-22 04:22:58 +00:00
These are the scripts that go into `$MyPSScriptRoot` which is part of my `$env:PATH` .
2020-09-16 15:57:55 +00:00
The development of these is documented in my blog: https://blog.lksz.me
They are provided 'as is' for your review and for your reuse.
2021-06-22 04:22:58 +00:00
### This is the way
Below are instrucitons for initializing/setting up this envrionment:
2020-10-02 17:04:17 +00:00
```PowerShell
iwr https://lksz.me/pwsz | iex
2021-06-22 04:22:58 +00:00
_Init # [-WriteInitScript] [-sudo] [-Force] [-NoGitClone] [-GitURL < alternative git URL > ] [-WhatIf] [-Confirm] [< CommonParameters > ]
2020-10-02 17:04:17 +00:00
```
2020-09-16 19:24:19 +00:00
2020-10-02 18:11:46 +00:00
This sets up the `$PROFILE` file, and initilizes the default dir `$MyPSScriptRoot` with a git clone of this repo.
2021-06-22 04:22:58 +00:00
The `https://lksz.me/pwsz` actually points to the [`Setup-ScriptEnv.ps1` ](Setup-ScriptEnv.ps1 ) script, which means, that after you have the `Scripts` directory setup, you can call `Setup-ScriptEnv -WriteInitScript` to update the `$PROFILE` after the setup script has been modified (or updated via `git pull` ).
2020-09-16 19:24:19 +00:00