310103c2f7
Docker and Docker-Compose commands and aliases: - dco: docker-compose - dcc: docker-compose config - dcedit/vidc/Edit-DockerCompose: edit docker-compose.yml and satellite files - dcdown.ps1 - dl/dll/dcl/dcll: view docker/docker-compose logs l : follow ll : just list - dx/dcx: docker / docker-compose exec - dcdown: docker-compose down - dcup: docker-compose up - dcr: docker-compose run - dcre: docker-compose restart - dcreup: docker-compose up with force recreate - di: docker inspect A bunch of other aliases and tools: - l/ll - shortcuts for ls -la - Edit-MyConfig with MyConfig.class: Edit various configuration files - Update-ArchOSz: my common update params for Arch all ready to run - Update-UbuntuOSz: my common update params for Ubuntu all ready to run - sz-df - a ps stylized df - sz-du - what's the size of a dir - sys.Linux/ls - a Linux specific ls (with all required configuration) Works in progress (not completely tested yet): - Stop-ProcessTree - Update-OSz.ps1 - src/smartsudo.inc.ps1 |
||
---|---|---|
Aliases | ||
profile.d | ||
src | ||
sys.Linux | ||
.gitignore | ||
ConvertFrom-Base64.ps1 | ||
Edit-DockerCompose.ps1 | ||
Edit-MyConfig.ps1 | ||
Edit-MyProfiles.ps1 | ||
Edit-MyScript.ps1 | ||
Edit-TextFile.ps1 | ||
Get-MyScript.ps1 | ||
Get-PossibleArguments.ps1 | ||
Get-Profiles.ps1 | ||
Get-ScopeDepth.ps1 | ||
Invoke-Sudo.ps1 | ||
LICENSE | ||
README.md | ||
Reload-MyScripts.ps1 | ||
Setup-Profile.ps1 | ||
Stop-ProcessTree.ps1 | ||
Update-ArchOSz.ps1 | ||
Update-OSz.ps1 | ||
Update-UbuntuOSz.ps1 | ||
dcc.ps1 | ||
dcdown.ps1 | ||
dcl.ps1 | ||
dcll.ps1 | ||
dcr.ps1 | ||
dcre.ps1 | ||
dcreup.ps1 | ||
dcup.ps1 | ||
dcx.ps1 | ||
di.ps1 | ||
dl.ps1 | ||
dll.ps1 | ||
dps.ps1 | ||
dx.ps1 | ||
sz-df.ps1 | ||
sz-du.ps1 |
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.