diff --git a/Reload-MyScripts.ps1 b/Reload-MyScripts.ps1 index fd0aca3..a9eac00 100644 --- a/Reload-MyScripts.ps1 +++ b/Reload-MyScripts.ps1 @@ -1,7 +1,7 @@ [CmdletBinding(SupportsShouldProcess)]param() $local:myAliases = [ordered]@{} -$myAliases.sudo = 'Invoke-Sudo' +#$myAliases.sudo = 'Invoke-Sudo' $myAliases.vi = 'Edit-TextFile' $myAliases.vim = 'Edit-TextFile' $myAliases.nvim = 'Edit-TextFile' diff --git a/Setup-Profile.ps1 b/Setup-Profile.ps1 index 0173767..b5a3cfb 100644 --- a/Setup-Profile.ps1 +++ b/Setup-Profile.ps1 @@ -414,6 +414,8 @@ if ( -not $MyPSScriptRoot -or (Test-Path function:Test-IsAdmin, function:Convert . ProfileCode_common } +$SetupFromWeb = [bool]$(@( $SetupFromWeb, $sfw, $LoadCode ) | Where-Object { $_ }) + if ( -not $SetupFromWeb ) { _setup @PSBoundParameters Get-Item function:_setup | Remove-Item