mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-04-25 11:28:17 +02:00
Merge branch 'main' of github.com:fleschutz/PowerShell
This commit is contained in:
commit
210b878771
@ -12,7 +12,7 @@ function prompt { Write-Host "`n➤ " -noNewline -foregroundColor yellow; return
|
|||||||
|
|
||||||
# ALIAS NAMES
|
# ALIAS NAMES
|
||||||
del alias:pwd -force -errorAction SilentlyContinue
|
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 pwd -value list-workdir.ps1 # pwd = print working directory
|
||||||
set-alias -name ll -value get-childitem # ll = list folder (long format)
|
set-alias -name ll -value get-childitem # ll = list folder (long format)
|
||||||
del alias:ls -force -errorAction SilentlyContinue
|
del alias:ls -force -errorAction SilentlyContinue
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
<#
|
|
||||||
.SYNOPSIS
|
|
||||||
Provide help to the user
|
|
||||||
.DESCRIPTION
|
|
||||||
This PowerShell script launches new tabs in the Web browser with help pages.
|
|
||||||
.EXAMPLE
|
|
||||||
PS> ./open-help.ps1
|
|
||||||
.LINK
|
|
||||||
https://github.com/fleschutz/PowerShell
|
|
||||||
.NOTES
|
|
||||||
Author: Markus Fleschutz | License: CC0
|
|
||||||
#>
|
|
||||||
|
|
||||||
try {
|
|
||||||
""
|
|
||||||
& "$PSScriptRoot/write-typewriter.ps1" "DON'T PANIC - HELP IS ON THE WAY..." 170
|
|
||||||
""
|
|
||||||
& "$PSScriptRoot/open-URL.ps1" -text "1. See the official PowerShell documentation at: " "https://docs.microsoft.com/en-us/powershell"
|
|
||||||
Start-Sleep -milliseconds 50
|
|
||||||
|
|
||||||
& "$PSScriptRoot/open-URL.ps1" -text "2. A PowerShell tutorial is at: " "https://www.guru99.com/powershell-tutorial.html"
|
|
||||||
Start-Sleep -milliseconds 50
|
|
||||||
|
|
||||||
& "$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
|
|
||||||
|
|
||||||
& "$PSScriptRoot/open-URL.ps1" -text "4. A PowerShell Cheat Sheet is at: " "https://github.com/fleschutz/PowerShell/blob/main/docs/cheat-sheet.md"
|
|
||||||
""
|
|
||||||
"NOTE: Use <Ctrl> + <Click> to open the links in your browser."
|
|
||||||
exit 0 # success
|
|
||||||
} catch {
|
|
||||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
|
||||||
exit 1
|
|
||||||
}
|
|
47
scripts/write-help.ps1
Executable file
47
scripts/write-help.ps1
Executable file
@ -0,0 +1,47 @@
|
|||||||
|
<#
|
||||||
|
.SYNOPSIS
|
||||||
|
Provide help to the user
|
||||||
|
.DESCRIPTION
|
||||||
|
This PowerShell script launches new tabs in the Web browser with help pages.
|
||||||
|
.EXAMPLE
|
||||||
|
PS> ./open-help.ps1
|
||||||
|
.LINK
|
||||||
|
https://github.com/fleschutz/PowerShell
|
||||||
|
.NOTES
|
||||||
|
Author: Markus Fleschutz | License: CC0
|
||||||
|
#>
|
||||||
|
|
||||||
|
try {
|
||||||
|
""
|
||||||
|
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
|
||||||
|
""
|
||||||
|
Write-Host " 🔷 PowerShell documentation: " -noNewline
|
||||||
|
Write-Host "https://docs.microsoft.com/en-us/powershell" -foregroundColor blue
|
||||||
|
|
||||||
|
Write-Host " 🔷 PowerShell tutorial: " -noNewline
|
||||||
|
Write-Host "https://www.guru99.com/powershell-tutorial.html" -foregroundColor blue
|
||||||
|
|
||||||
|
Write-Host " 🔷 PowerShell FAQ's: " -noNewline
|
||||||
|
Write-Host "https://github.com/fleschutz/PowerShell/blob/main/docs/FAQ.md" -foregroundColor blue
|
||||||
|
|
||||||
|
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
|
||||||
|
} catch {
|
||||||
|
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||||
|
exit 1
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user