Browse Source

Minor midifications

master
lksz 1 year ago
parent
commit
0718bf28c7
2 changed files with 3 additions and 1 deletions
  1. +1
    -1
      Reload-MyScripts.ps1
  2. +2
    -0
      Setup-Profile.ps1

+ 1
- 1
Reload-MyScripts.ps1 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'


+ 2
- 0
Setup-Profile.ps1 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


Loading…
Cancel
Save