Major Overhaul with Breaking Changes
split into packaged, default behavior moved into 'base' package
each package has a json package description file with criteria for
loading
Modified Setup-Profile to refer to 'base' package path for auto loading
moved Linux aliases and command to 'base.linux' package
created 'docker' package to address docker supported systems
modified Get-MyScripts, Edit-MyScripts and Reload-MyScripts accordingly.
Dropped -System and sys.*, package json conditions will take care of it.
Supplied command to create/edit package json files:
- New-MyPackage
- Add-PackageCondition
- Set-MyPackage
Setup-Profile: GitClone verbosity
Fixed: Existing $profile code will not be overwritten,
instead profile code will be inserted before existing code.
Fixed: status message is reflected correctly:
* Setup (replace/append)
* Init (file created)
* Clenaup (removal of code / deletion)
When profile code is removed, a placeholder remains behind,
this will allow correct replacement if another setup is performed
Edit-TextFile:
Switched to Invoke-ExpressionEx for sudo invocation.
Setup-Profile included, read all about it at
https://blog.lksz.me/the-profile-and-setting-it-up
When running Edit-MyScript without parameters, the $MyPSScriptRoot path
will be sent (editing the directory)
Added ability to edit scripts with Edit-MyPrfiles, making editing
profiles alongside scripts easy.
🔖https://blog.lksz.me/editing-with-ease/✏️ Fixed $MyPSScriptRoot typo
✨ Get-ScopeDepth
🐛 Get-MyAliases didn't work correctly when sub-scoped, fixed the issue
🚚 Reload-MyAliases is now Reload-MyScripts
🐛 Reload-MyScripts loads scripts from $MyPSScriptRoot/profile.d subdir
📝 README updated to reflect change of script name and typo