diff --git a/functions/Override-Profile.ps1 b/functions/Override-Profile.ps1 new file mode 100644 index 0000000..d9751c5 --- /dev/null +++ b/functions/Override-Profile.ps1 @@ -0,0 +1,8 @@ +# gitea.RdzeN.net +# Override $profile +function Override-Profile { + if ((Test-Path $PROFILE)) { + Copy-Item -Path $path_gitea_powershell_profile -Destination $PROFILE -Force + New-SimulateTyping "Your PowerShell profile was Override!" + } +} \ No newline at end of file diff --git a/functions/Test-Profile b/functions/Test-Profile new file mode 100644 index 0000000..6114e97 --- /dev/null +++ b/functions/Test-Profile @@ -0,0 +1,8 @@ +# gitea.RdzeN.net +# Reload $profile +function Test-Profile { + if (-not (Test-Path $PROFILE)) { + Copy-Item -Path $path_gitea_powershell_profile -Destination $PROFILE + New-SimulateTyping "Your PowerShell profile was created!" + } +} \ No newline at end of file