From 84b93ca085585c81ab93d9c94473a4d02c598329 Mon Sep 17 00:00:00 2001 From: Markus Fleschutz <markus.fleschutz@gmail.com> Date: Tue, 3 Sep 2024 15:00:02 +0200 Subject: [PATCH 1/2] Updated opn-help.ps1 --- scripts/open-help.ps1 | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/scripts/open-help.ps1 b/scripts/open-help.ps1 index 74333e25..49eb7716 100755 --- a/scripts/open-help.ps1 +++ b/scripts/open-help.ps1 @@ -1,4 +1,4 @@ -<# +<# .SYNOPSIS Provide help to the user .DESCRIPTION @@ -13,18 +13,31 @@ try { "" - & "$PSScriptRoot/write-typewriter.ps1" "DON'T PANIC - HELP IS ON THE WAY..." 170 + Write-Host " " -foregroundColor black -backgroundColor white + Write-Host " ▄▄▄▄▄▄▄ ▄ ▄▄▄ ▄▄▄▄▄▄▄ " -foregroundColor black -backgroundColor white + Write-Host " █ ▄▄▄ █ ▄▄▀█ █ ▄▄▄ █ " -foregroundColor black -backgroundColor white + Write-Host " █ ███ █ █▀ ▄▀ █ ███ █ " -foregroundColor black -backgroundColor white + Write-Host " █▄▄▄▄▄█ ▄▀█▀█ █▄▄▄▄▄█ " -foregroundColor black -backgroundColor white + Write-Host " ▄▄▄▄ ▄ ▄▄▄██▄ ▄▄▄ ▄ " -foregroundColor black -backgroundColor white + Write-Host " ▀ █ ▀▄▄▀█▀▀█▀█▀█▀▀▀▄█ " -foregroundColor black -backgroundColor white + Write-Host " ▄▄██▀▀▄▄█ ▄▀▄▄▄▀ ▀ ▀▄ " -foregroundColor black -backgroundColor white + Write-Host " ▄▄▄▄▄▄▄ ▀▀██▄▄██▄ ▀ ▀ " -foregroundColor black -backgroundColor white + Write-Host " █ ▄▄▄ █ ▀▄ ▄▀ ▀ ██▀▀ " -foregroundColor black -backgroundColor white + Write-Host " █ ███ █ █▄ ▄ ▀▄ ▀█▀ " -foregroundColor black -backgroundColor white + Write-Host " █▄▄▄▄▄█ █▀▄█ ███▀ ▄ ▀ " -foregroundColor black -backgroundColor white + Write-Host " " -foregroundColor black -backgroundColor white "" - & "$PSScriptRoot/open-URL.ps1" -text "1. See the official PowerShell documentation at: " "https://docs.microsoft.com/en-us/powershell" - Start-Sleep -milliseconds 50 + Write-Host " 🔷 PowerShell documentation: " -noNewline + Write-Host "https://docs.microsoft.com/en-us/powershell" -foregroundColor blue - & "$PSScriptRoot/open-URL.ps1" -text "2. A PowerShell tutorial is at: " "https://www.guru99.com/powershell-tutorial.html" - Start-Sleep -milliseconds 50 + Write-Host " 🔷 PowerShell tutorial: " -noNewline + Write-Host "https://www.guru99.com/powershell-tutorial.html" -foregroundColor blue - & "$PSScriptRoot/open-URL.ps1" -text "3. PowerShell FAQ's can be found here: " "https://github.com/fleschutz/PowerShell/blob/main/docs/FAQ.md" - Start-Sleep -milliseconds 50 + Write-Host " 🔷 PowerShell FAQ's: " -noNewline + Write-Host "https://github.com/fleschutz/PowerShell/blob/main/docs/FAQ.md" -foregroundColor blue - & "$PSScriptRoot/open-URL.ps1" -text "4. A PowerShell Cheat Sheet is at: " "https://github.com/fleschutz/PowerShell/blob/main/docs/cheat-sheet.md" + Write-Host " 🔷 PowerShell Cheat Sheet: " -noNewline + Write-Host "https://github.com/fleschutz/PowerShell/blob/main/docs/cheat-sheet.md" -foregroundColor blue "" "NOTE: Use <Ctrl> + <Click> to open the links in your browser." exit 0 # success From fcdbe96335ad3d0cbb439ac1a58f0e73d11de4fa Mon Sep 17 00:00:00 2001 From: Markus Fleschutz <markus.fleschutz@gmail.com> Date: Tue, 3 Sep 2024 15:03:15 +0200 Subject: [PATCH 2/2] Renamed to write-help.ps1 --- scripts/my-profile.ps1 | 2 +- scripts/{open-help.ps1 => write-help.ps1} | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename scripts/{open-help.ps1 => write-help.ps1} (100%) diff --git a/scripts/my-profile.ps1 b/scripts/my-profile.ps1 index 94591976..6b7e1252 100755 --- a/scripts/my-profile.ps1 +++ b/scripts/my-profile.ps1 @@ -12,7 +12,7 @@ function prompt { Write-Host "`n➤ " -noNewline -foregroundColor yellow; return # ALIAS NAMES del alias:pwd -force -errorAction SilentlyContinue -set-alias -name hlp -value open-help.ps1 +set-alias -name hlp -value write-help.ps1 set-alias -name pwd -value list-workdir.ps1 # pwd = print working directory set-alias -name ll -value get-childitem # ll = list folder (long format) del alias:ls -force -errorAction SilentlyContinue diff --git a/scripts/open-help.ps1 b/scripts/write-help.ps1 similarity index 100% rename from scripts/open-help.ps1 rename to scripts/write-help.ps1