diff --git a/functions/Reload-Profile.ps1 b/functions/Reload-Profile.ps1 index 0529748..eff52f6 100644 --- a/functions/Reload-Profile.ps1 +++ b/functions/Reload-Profile.ps1 @@ -1,5 +1,13 @@ # gitea.RdzeN.net # Reload $profile function Reload-Profile { - . $PROFILE + Write-Host "Do you want to reload your PS profile?" + do { + $reload = Read-Host "Type [Y]es or [N]o" + } until ( + $reload -in ("Y","N") + ) + if ($reload -eq "Y") { + . $PROFILE + } } \ No newline at end of file