mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-02-16 17:51:28 +01:00
Update introduce-powershell.ps1
This commit is contained in:
parent
94e7ea7669
commit
61274f7488
@ -14,20 +14,29 @@
|
||||
try {
|
||||
Clear-Host
|
||||
""
|
||||
& "$PSScriptRoot/write-animated.ps1" "Welcome to"
|
||||
""
|
||||
& "$PSScriptRoot/write-big.ps1" " POWERSHELL"
|
||||
""
|
||||
& "$PSScriptRoot/write-typewriter.ps1" " There is one shell to rule them all:" 200
|
||||
""
|
||||
" _____ _____ _ _ _ "
|
||||
" | __ \ / ____| | | | |"
|
||||
" | |__) |____ _____ _ _| (___ | |__ ___| | |"
|
||||
" | ___/ _ \ \ /\ / / _ \ '__\___ \| '_ \ / _ \ | |"
|
||||
" | | | (_) \ V V / __/ | ____) | | | | __/ | |"
|
||||
" |_| \___/ \_/\_/ \___|_| |_____/|_| |_|\___|_|_|"
|
||||
""
|
||||
""
|
||||
$Version = $PSVersionTable.PSVersion
|
||||
$Edition = $PSVersionTable.PSEdition
|
||||
$NumModules = (Get-Module).Count
|
||||
$NumAliases = (Get-Alias).Count
|
||||
$Details = "PowerShell $Version ($Edition edition) with $NumModules modules and $NumAliases aliases"
|
||||
$Details = "PowerShell $Version ($Edition edition) with $NumModules modules and $NumAliases aliases."
|
||||
Write-Host "🔸 " -noNewline
|
||||
& "$PSScriptRoot/write-typewriter.ps1" "This is $Details" 25
|
||||
& "$PSScriptRoot/write-typewriter.ps1" "Welcome to $Details" 25
|
||||
""
|
||||
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" "Curious? Take a look under the hood at: https://github.com/PowerShell/PowerShell" 25
|
||||
""
|
||||
Write-Host "🔸 " -noNewline
|
||||
& "$PSScriptRoot/write-typewriter.ps1" "Want to learn PowerShell? See the tutorials at: https://www.guru99.com/powershell-tutorial.html" 25
|
||||
@ -36,16 +45,15 @@ 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 examples? See the PowerShell script collection at: https://github.com/fleschutz/PowerShell" 25
|
||||
& "$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" "Take a look under the hood and visit the PowerShell Github repository at: https://github.com/PowerShell/PowerShell" 25
|
||||
& "$PSScriptRoot/write-typewriter.ps1" "Want to donate? Great, just follow this link: https://www.paypal.com/paypalme/Fleschutz" 25
|
||||
""
|
||||
Write-Host "🔸 " -noNewline
|
||||
& "$PSScriptRoot/write-typewriter.ps1" "Any questions? See the PowerShell FAQ at: https://github.com/fleschutz/PowerShell/blob/master/Docs/FAQ.md" 25
|
||||
""
|
||||
& "$PSScriptRoot/write-typewriter.ps1" " (use <Ctrl> + <Click> to follow the links above)" 20
|
||||
""
|
||||
& "$PSScriptRoot/write-typewriter.ps1" " (use <Ctrl> + <Click> to open the links above in your browser)" 100
|
||||
exit 0 # success
|
||||
} catch {
|
||||
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"
|
||||
|
Loading…
Reference in New Issue
Block a user