diff --git a/RdzeN-Profile.ps1 b/RdzeN-Profile.ps1 index ecf356e..79c765a 100644 --- a/RdzeN-Profile.ps1 +++ b/RdzeN-Profile.ps1 @@ -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" #