modified: RdzeN-Profile.ps1

This commit is contained in:
Tomasz Kostrzewa 2024-03-06 18:59:21 +01:00
parent be8ff7fb05
commit fa4d6a45a7

View File

@ -70,11 +70,7 @@ Get-ChildItem $path_to_search | ForEach-Object {
foreach ($match in $matches) {
$found_functions += $match.Value.Trim()
}
}
if ($git_repo_update -eq $true) {
Override-Profile
Reload-Profile
. $_
}
$found_functions = $found_functions | Sort-Object
@ -85,6 +81,11 @@ for ($i = 0; $i -lt $found_functions.Count; $i++) {
Write-Host "$($found_functions[$i])" -ForegroundColor Cyan
}
if ($git_repo_update -eq $true) {
Override-Profile
Reload-Profile
}
# 99. Prompt profile loaded
New-SimulateTyping "PowerShell User Profile is loaded"
#