diff --git a/RdzeN-Profile.ps1 b/RdzeN-Profile.ps1 index ced5280..94af08d 100644 --- a/RdzeN-Profile.ps1 +++ b/RdzeN-Profile.ps1 @@ -45,29 +45,9 @@ Get-ChildItem $path_gitea_powershell_profile_functions | ForEach-Object { . $_.FullName } -# 96. Update Profile Section: -if (-not (Test-Path $PROFILE)) { - # 97. Test Profile - Test-Profile -} else { - # 98. Override Profile - do { - New-SimulateTyping "Do you want to Override your PS Profile?" - $reload = Read-Host "Type [Y]es or [N]o" - } until ( - $reload -in ("Y","N") - ) - if ($reload -eq "Y") { - Override-Profile - } -} +# 97. Test Profile +Test-Profile +# 98. Override Profile +Override-Profile # 99. Reload Profile -do { - New-SimulateTyping "Do you want to Reload your PS Profile?" - $reload = Read-Host "Type [Y]es or [N]o" -} until ( - $reload -in ("Y","N") -) -if ($reload -eq "Y") { - Reload-Profile -} +Reload-Profile \ No newline at end of file diff --git a/functions/Override-Profile.ps1 b/functions/Override-Profile.ps1 index e32f9d3..feac173 100644 --- a/functions/Override-Profile.ps1 +++ b/functions/Override-Profile.ps1 @@ -3,6 +3,5 @@ function Override-Profile { if ((Test-Path $PROFILE)) { Get-Content "$path_gitea_powershell_profile\RdzeN-Profile.ps1" | Set-Content $PROFILE -Force - New-SimulateTyping "Your PowerShell profile was Override!" } } \ No newline at end of file diff --git a/functions/Reload-Profile.ps1 b/functions/Reload-Profile.ps1 index ce6a83c..0529748 100644 --- a/functions/Reload-Profile.ps1 +++ b/functions/Reload-Profile.ps1 @@ -2,5 +2,4 @@ # Reload $profile function Reload-Profile { . $PROFILE -} -New-SimulateTyping "Your PowerShell profile was Reloaded!" \ No newline at end of file +} \ No newline at end of file diff --git a/functions/Test-Profile.ps1 b/functions/Test-Profile.ps1 index b2fa531..b3a0a87 100644 --- a/functions/Test-Profile.ps1 +++ b/functions/Test-Profile.ps1 @@ -3,6 +3,5 @@ function Test-Profile { if (-not (Test-Path $PROFILE)) { Copy-Item -Path "$path_gitea_powershell_profile\RdzeN-Profile.ps1" -Destination $PROFILE -force - New-SimulateTyping "Your PowerShell profile was created!" } } \ No newline at end of file