Setup-Profile and co.

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.
This commit is contained in:
lksz 2020-09-25 01:04:05 -04:00
parent 06052cfa29
commit ae07e06c27
6 changed files with 352 additions and 43 deletions

View file

@ -41,6 +41,10 @@ foreach( $local:p in $ScriptName ) {
$ScriptPaths += $sp
}
if( -not $ScriptPaths ) {
$ScriptPaths += $MyPSScriptRoot
}
Edit-TextFile $ScriptPaths
Get-Command Reload-MyScripts -ErrorAction SilentlyContinue |