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:
parent
06052cfa29
commit
ae07e06c27
6 changed files with 352 additions and 43 deletions
|
@ -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 |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue