Reload-Scripts now loads Platform/OS specific scripts depending on
current state.
This required the SystemName class
sranger is an example of running ranger as sudo, but only in Linux.
Moved Get-MyAliases into Reload-MyScripts, and changed Reload-MyScripts
to load Aliases dynamically via the Aliases directory.
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