Skip to content

Instantly share code, notes, and snippets.

@Jauska
Jauska / invoke-insult.ps1
Last active August 6, 2023 16:27 — forked from bielawb/invoke-insult.ps1
If you want your PowerShell to insult you when you run wrong command...
$ExecutionContext.InvokeCommand.CommandNotFoundAction = {
param ($name, $eventArgs)
@(
"Boooo!"
"Don't you know anything?"
"RTFM!"
"Hahaha, n00b!"
"Wow! That was impressively wrong!"
"He said: $name :D"
"What are you doing??"