new file: RdzeN-Profile/RdzeN-Profile.ps1

new file:   RdzeN-Profile/functions/New-SimulateTyping.ps1
	deleted:    SimulateTyping/New-SimulateTyping.ps1
This commit is contained in:
Tomasz Kostrzewa 2024-03-05 17:43:30 +01:00
parent 08b1bf2392
commit 9e0ec7b4be
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,4 @@
# gitea.RdzeN.net
#
# Example Powershell Profile.
#

View File

@ -0,0 +1,17 @@
# gitea.RdzeN.net
# Simulate Typing
function New-SimulateTyping {
param(
[string]$message
)
# Iterate through each character in the text
foreach ($char in $message.ToCharArray()) {
# Write each character to the screen
Write-Host -NoNewline $char -ForegroundColor Yellow
# Wait before writing the next character (adjustable time in milliseconds)
Start-Sleep -Milliseconds (Get-Random -Minimum 10 -Maximum 100)
}
# New line after last char.
Write-Host ""
}