Skip to content

Commit 61274f7

Browse files
author
Markus Fleschutz
committed
Update introduce-powershell.ps1
1 parent 94e7ea7 commit 61274f7

1 file changed

Lines changed: 18 additions & 10 deletions

File tree

Scripts/introduce-powershell.ps1

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,29 @@
1414
try {
1515
Clear-Host
1616
""
17-
& "$PSScriptRoot/write-animated.ps1" "Welcome to"
18-
""
19-
& "$PSScriptRoot/write-big.ps1" " POWERSHELL"
20-
""
17+
& "$PSScriptRoot/write-typewriter.ps1" " There is one shell to rule them all:" 200
2118
""
19+
" _____ _____ _ _ _ "
20+
" | __ \ / ____| | | | |"
21+
" | |__) |____ _____ _ _| (___ | |__ ___| | |"
22+
" | ___/ _ \ \ /\ / / _ \ '__\___ \| '_ \ / _ \ | |"
23+
" | | | (_) \ V V / __/ | ____) | | | | __/ | |"
24+
" |_| \___/ \_/\_/ \___|_| |_____/|_| |_|\___|_|_|"
2225
""
2326
""
2427
$Version = $PSVersionTable.PSVersion
2528
$Edition = $PSVersionTable.PSEdition
2629
$NumModules = (Get-Module).Count
2730
$NumAliases = (Get-Alias).Count
28-
$Details = "PowerShell $Version ($Edition edition) with $NumModules modules and $NumAliases aliases"
31+
$Details = "PowerShell $Version ($Edition edition) with $NumModules modules and $NumAliases aliases."
32+
Write-Host "🔸 " -noNewline
33+
& "$PSScriptRoot/write-typewriter.ps1" "Welcome to $Details" 25
34+
""
2935
Write-Host "🔸 " -noNewline
30-
& "$PSScriptRoot/write-typewriter.ps1" "This is $Details" 25
36+
& "$PSScriptRoot/write-typewriter.ps1" "PowerShell is open-source and free! It's available for Linux, Mac OS and Windows." 25
37+
""
38+
Write-Host "🔸 " -noNewline
39+
& "$PSScriptRoot/write-typewriter.ps1" "Curious? Take a look under the hood at: https://github.com/PowerShell/PowerShell" 25
3140
""
3241
Write-Host "🔸 " -noNewline
3342
& "$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 {
3645
& "$PSScriptRoot/write-typewriter.ps1" "Need docs? See the official documentation at: https://docs.microsoft.com/en-us/powershell" 25
3746
""
3847
Write-Host "🔸 " -noNewline
39-
& "$PSScriptRoot/write-typewriter.ps1" "Want examples? See the PowerShell script collection at: https://github.com/fleschutz/PowerShell" 25
48+
& "$PSScriptRoot/write-typewriter.ps1" "Want sample scripts? See the Mega Collection of PowerShell scripts at: https://github.com/fleschutz/PowerShell" 25
4049
""
4150
Write-Host "🔸 " -noNewline
42-
& "$PSScriptRoot/write-typewriter.ps1" "Take a look under the hood and visit the PowerShell Github repository at: https://github.com/PowerShell/PowerShell" 25
51+
& "$PSScriptRoot/write-typewriter.ps1" "Want to donate? Great, just follow this link: https://www.paypal.com/paypalme/Fleschutz" 25
4352
""
4453
Write-Host "🔸 " -noNewline
4554
& "$PSScriptRoot/write-typewriter.ps1" "Any questions? See the PowerShell FAQ at: https://github.com/fleschutz/PowerShell/blob/master/Docs/FAQ.md" 25
4655
""
47-
& "$PSScriptRoot/write-typewriter.ps1" " (use <Ctrl> + <Click> to follow the links above)" 20
48-
""
56+
& "$PSScriptRoot/write-typewriter.ps1" " (use <Ctrl> + <Click> to open the links above in your browser)" 100
4957
exit 0 # success
5058
} catch {
5159
"⚠️ Error in line $($_.InvocationInfo.ScriptLineNumber): $($Error[0])"

0 commit comments

Comments
 (0)