Minor midifications

This commit is contained in:
lksz 2020-10-01 00:28:57 -04:00
parent 45b53dc110
commit 0718bf28c7
2 changed files with 3 additions and 1 deletions

View File

@ -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'

View File

@ -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