Go to file
Gal Szkolnik baa3ccd04d Updated MyConfig code to include modules
This is a prep for MyModules, a way to notify users that a module
installation is recommended for the features of the scripting
environment
2020-11-05 00:00:18 -05:00
Aliases Fixed a bug in FromPowerShellCookbook 2020-11-04 11:45:53 -05:00
profile.d Updated MyConfig code to include modules 2020-11-05 00:00:18 -05:00
src Updated MyConfig code to include modules 2020-11-05 00:00:18 -05:00
sys.Linux Various additions 2020-11-04 10:58:04 -05:00
.gitignore Setup-Profile and co. 2020-09-25 01:30:21 -04:00
ConvertFrom-Base64.ps1 Adding common commands + Minor modifications 2020-10-03 16:17:11 -04:00
Edit-DockerCompose.ps1 Various additions 2020-11-04 10:58:04 -05:00
Edit-MyConfig.ps1 MyConfig modifications 2020-11-04 23:31:34 -05:00
Edit-MyProfiles.ps1 Minor auto-complete cosmetics 2020-09-30 17:43:36 -04:00
Edit-MyScript.ps1 Adding common commands + Minor modifications 2020-10-03 16:17:11 -04:00
Edit-TextFile.ps1 Setup-Profile fixes + Edit-TextFile fixes 2020-09-30 16:43:07 -04:00
Get-DockerProcess.ps1 Various additions 2020-11-04 10:58:04 -05:00
Get-MyScript.ps1 Reload-MyAliases is now Reload-MyScripts 2020-09-18 15:56:40 -04:00
Get-Path.ps1 MyConfig modifications 2020-11-04 23:31:34 -05:00
Get-PossibleArguments.ps1 Reload-MyAliases is now Reload-MyScripts 2020-09-18 15:56:40 -04:00
Get-Profiles.ps1 Reload-MyAliases is now Reload-MyScripts 2020-09-18 15:56:40 -04:00
Get-ScopeDepth.ps1 Reload-MyAliases is now Reload-MyScripts 2020-09-18 15:56:40 -04:00
Invoke-Sudo.ps1 Adding common commands + Minor modifications 2020-10-03 16:17:11 -04:00
LICENSE Initial commit 2020-09-16 10:56:03 -04:00
README.md Better instructions 2020-10-02 14:11:46 -04:00
Reload-MyScripts.ps1 Fixed minor cross-platfrom bug in Reload-MyScripts 2020-10-03 16:23:08 -04:00
Setup-Profile.ps1 Setup-Profile will update git scripts from git repo 2020-10-03 16:32:55 -04:00
Stop-ProcessTree.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
Update-ArchOSz.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
Update-OSz.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
Update-UbuntuOSz.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
dcc.ps1 Various additions 2020-11-04 10:58:04 -05:00
dcdown.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
dcl.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
dcll.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
dcr.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
dcre.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
dcreup.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
dcup.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
dcx.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
di.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
dl.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
dll.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
dx.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
sz-df.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00
sz-du.ps1 A lot of new stuff 2020-10-31 17:10:32 -04:00

README.md

PowerShell Scripts

These are the scripts that go into $MyPSScriptRoot which is part of my $env:PATH.

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.

This envrionment can be installed using one the following options:

The Short, yet safer way

iwr https://lksz.me/pwsz | iex

This sets up the $PROFILE file, and initilizes the default dir $MyPSScriptRoot with a git clone of this repo. The https://lksz.me/pwsz actually points to the Setup-Profile.ps1 script, which means, that after you have the Scripts directory setup, you can call Setup-Profile to update the $PROFILE after the Setup-Profile.ps1 has been modified (or updated via git pull).

The Short, but with control option

$sfw=1; iwr https://lksz.me/pwsz | iex; _setup [-sudo] [-Force] [-NoGitClone] [-GitURL <alternative git URL>] [-WhatIf] [-Confirm] [<CommonParameters>]

The key here is $sfw=1, which can be substitued with the more verbose $SetupFromWeb=1, this let's the Setup-Profile script know to just load it's content, but allow you to manually call it's internal function via _setup

The 'I don't trust one liners, what's going on ?!?' option

You can always clone the git repo first, and only then run the Setup-Profile.ps1 script.