From 6a413827df9d2b4e7a214401a145ca24ef7bf2c7 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz Date: Tue, 14 May 2024 21:25:54 +0200 Subject: [PATCH] Update introduce-powershell.ps1 and play-mp3.ps1 --- scripts/introduce-powershell.ps1 | 9 +++++---- scripts/play-mp3.ps1 | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/introduce-powershell.ps1 b/scripts/introduce-powershell.ps1 index c9f90b93..cc5e587a 100755 --- a/scripts/introduce-powershell.ps1 +++ b/scripts/introduce-powershell.ps1 @@ -14,7 +14,7 @@ try { Clear-Host "" - & "$PSScriptRoot/write-typewriter.ps1" " There's one shell to rule them all. It's called:" 200 + & "$PSScriptRoot/write-typewriter.ps1" " Hi $USERNAME, move into the fast lane by using . . ." 200 "" Write-Host " _____ _____ _ _ _ " -foregroundColor blue Write-Host " | __ \ / ____| | | | |" -foregroundColor blue @@ -32,6 +32,10 @@ try { Write-Host " 🔷 " -noNewline & "$PSScriptRoot/write-typewriter.ps1" "PowerShell is open-source and free! It's available for Linux, Mac OS and Windows" 25 "" + Write-Host " 🔷 " -noNewline + & "$PSScriptRoot/write-typewriter.ps1" "Enhance PowerShell by 500+ PowerShell scripts! Get them from: https://github.com/fleschutz/PowerShell" 25 + "" + Write-Host " 🔷 " -noNewline & "$PSScriptRoot/write-typewriter.ps1" "Want to learn PowerShell? See the tutorial at: https://www.guru99.com/powershell-tutorial.html" 25 "" @@ -39,9 +43,6 @@ try { & "$PSScriptRoot/write-typewriter.ps1" "Need docs? See the official documentation at: https://docs.microsoft.com/en-us/powershell" 25 "" Write-Host " 🔷 " -noNewline - & "$PSScriptRoot/write-typewriter.ps1" "Want sample scripts? See the Mega Collection of PowerShell scripts at: https://github.com/fleschutz/PowerShell" 25 - "" - Write-Host " 🔷 " -noNewline & "$PSScriptRoot/write-typewriter.ps1" "Want a cheat sheet? See: https://github.com/fleschutz/PowerShell/blob/master/docs/cheat-sheet.md" 25 "" Write-Host " 🔷 " -noNewline diff --git a/scripts/play-mp3.ps1 b/scripts/play-mp3.ps1 index acc8eb23..45d6fc56 100755 --- a/scripts/play-mp3.ps1 +++ b/scripts/play-mp3.ps1 @@ -32,7 +32,7 @@ try { [int]$minutes = $milliseconds / 60000 [int]$seconds = ($milliseconds / 1000) % 60 - Write-Host " ▶️" -noNewline -foregroundColor green + Write-Host " ▶️" -noNewline -foregroundColor green Write-Host "Playing $filename for $($minutes.ToString('00')):$($seconds.ToString('00'))s..." $previousTitle = $host.ui.RawUI.WindowTitle