diff --git a/functions/Override-Profile.ps1 b/functions/Override-Profile.ps1 index 06100d7..e32f9d3 100644 --- a/functions/Override-Profile.ps1 +++ b/functions/Override-Profile.ps1 @@ -2,7 +2,7 @@ # Override $profile function Override-Profile { if ((Test-Path $PROFILE)) { - Copy-Item -Path "$path_gitea_powershell_profile\RdzeN-Profile.ps1" -Destination $PROFILE -Force + 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