From fa4d6a45a7096fa385d5a67b705df85a8d36d581 Mon Sep 17 00:00:00 2001 From: Tomasz Kostrzewa Date: Wed, 6 Mar 2024 18:59:21 +0100 Subject: [PATCH] modified: RdzeN-Profile.ps1 --- RdzeN-Profile.ps1 | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) 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" #