insulter.plugin.zsh (18192B)
1 print_message () { 2 3 local messages 4 local message 5 6 ### STANDARD INSULTS ### 7 declare -a array1=( 8 "(╯°□°)╯︵ ┻━┻" 9 "¯\_(ツ)_/¯" 10 "ACHTUNG! ALLES TURISTEN UND NONTEKNISCHEN LOOKENPEEPERS! DAS KOMPUTERMASCHINE IST NICHT FÜR DER GEFINGERPOKEN UND MITTENGRABEN! ODERWISE IST EASY TO SCHNAPPEN DER SPRINGENWERK, BLOWENFUSEN UND POPPENCORKEN MIT SPITZENSPARKEN. IST NICHT FÜR GEWERKEN BEI DUMMKOPFEN. DER RUBBERNECKEN SIGHTSEEREN KEEPEN DAS COTTONPICKEN HÄNDER IN DAS POCKETS MUSS. ZO RELAXEN UND WATSCHEN DER BLINKENLICHTEN." 11 "And the Darwin Award goes to.... ${USER}!" 12 "Allowing you to survive childbirth was medical malpractice." 13 "Are you always this stupid or are you making a special effort today?!" 14 "Are you even trying?!" 15 "Bad." 16 "Boooo!" 17 "Brains aren't everything. In your case they're nothing." 18 "Commands, random gibberish, who cares!" 19 "Come on! You can do it!" 20 "Don't you have anything better to do?!" 21 "Don't you know anything?" 22 "Dropped on your head as a baby, eh?" 23 "error code: 1D10T" 24 "Even your mom loves you only as a friend." 25 "ERROR_INCOMPETENT_USER" 26 "Fake it till you make it!" 27 "Go outside." 28 "Haha, n00b!" 29 "How many times do I have to flush before you go away?" 30 "I am _seriously_ considering 'rm -rf /'-ing myself..." 31 "I don't know what makes you so stupid, but it really works." 32 "I was going to give you a nasty look, but I see you already have one." 33 "If beauty fades then you have nothing to worry about." 34 "If brains were gasoline you wouldn’t have enough to propel a flea’s motorcycle around a doughnut." 35 "If ignorance is bliss, you must be the happiest person on earth." 36 "If shit was music, you'd be an orchestra." 37 "If what you don't know can't hurt you, you're invulnerable." 38 "Incompetence is also a form of competence" 39 "I’d slap you, but that’d be animal abuse." 40 "I’ve heard of being hit with the ugly stick, but you must have been beaten senseless with it." 41 "Keep trying, someday you'll do something intelligent!" 42 "Let’s play horse. I’ll be the front end. And you be yourself." 43 "Life is good, you should get one." 44 "lol" 45 "lol... plz" 46 "My keyboard is not a touch screen!" 47 "My uptime is longer than your relationships." 48 "Nice try." 49 "n00b alert!" 50 "Pathetic" 51 "Perhaps computers are not for you..." 52 "Perhaps you should leave the command line alone..." 53 "Please step away from the keyboard!" 54 "plz uninstall" 55 "Pro tip: type a valid command!" 56 "Rose are red. Violets are blue. I have five fingers. The middle one's for you." 57 "RTFM!" 58 "Sorry what? I don’t understand idiot language." 59 "The degree of your stupidity is enough to boil water." 60 "The worst one today!" 61 "This is not a search engine." 62 "This is not Windows" 63 "This is why nobody likes you." 64 "This is why you get to see your children only once a month." 65 "Try using your brain the next time!" 66 "Two wrongs don't make a right, take your parents as an example." 67 "Typing incorrect commands, eh?" 68 "u suk" 69 "What if... you type an actual command the next time!" 70 "What if I told you... it is possible to type valid commands." 71 "What is this...? Amateur hour!?" 72 "Why are you so stupid?!" 73 "Why are you doing this to me?!" 74 "Why did the chicken cross the road? To get the hell away from you." 75 "Wow! That was impressively wrong!" 76 "Y u no speak computer???" 77 "You are not as bad as people say, you are much, much worse." 78 "You are not useless since you can still be used as a bad example." 79 "You must have been born on a highway because that's where most accidents happen." 80 "Your application for reduced salary has been sent!" 81 "Your mom had a severe case of diarrhea when you were born." 82 "You're proof that god has a sense of humor." 83 "You’re so dumb your first words were DUH." 84 "You're so fat, people jog around you for exercise." 85 "You’re the reason Santa says ho, ho, ho, on Christmas!" 86 ) 87 ### SHAKESPEARE INSULTS ### 88 declare -a array2=( 89 "A most notable coward, an infinite and endless liar, an hourly promise breaker, the owner of no one good quality." 90 "Away, you starvelling, you elf-skin, you dried neat's-tongue, bull's-pizzle, you stock-fish!" 91 "Away, you three-inch fool! " 92 "Come, come, you froward and unable worms!" 93 "Go, prick thy face, and over-red thy fear, Thou lily-liver’d boy." 94 "His wit's as thick as a Tewkesbury mustard." 95 "I am pigeon-liver'd and lack gall." 96 "I am sick when I do look on thee " 97 "I must tell you friendly in your ear, sell when you can, you are not for all markets." 98 "If thou wilt needs marry, marry a fool; for wise men know well enough what monsters you make of them." 99 "I'll beat thee, but I would infect my hands." 100 "I scorn you, scurvy companion. " 101 "Methink'st thou art a general offence and every man should beat thee." 102 "More of your conversation would infect my brain." 103 "My wife's a hobby horse!" 104 "Peace, ye fat guts!" 105 "Poisonous bunch-backed toad! " 106 "The rankest compound of villainous smell that ever offended nostril" 107 "The tartness of his face sours ripe grapes." 108 "There's no more faith in thee than in a stewed prune." 109 "Thine forward voice, now, is to speak well of thine friend; thine backward voice is to utter foul speeches and to detract." 110 "That trunk of humours, that bolting-hutch of beastliness, that swollen parcel of dropsies, that huge bombard of sack, that stuffed cloak-bag of guts, that roasted Manningtree ox with pudding in his belly, that reverend vice, that grey Iniquity, that father ruffian, that vanity in years?" 111 "Thine face is not worth sunburning." 112 "This woman's an easy glove, my lord, she goes off and on at pleasure." 113 "Thou art a boil, a plague sore." 114 "Was the Duke a flesh-monger, a fool and a coward?" 115 "Thou art as fat as butter." 116 "Here is the babe, as loathsome as a toad." 117 "Like the toad; ugly and venomous." 118 "Thou art unfit for any place but hell." 119 "Thou cream faced loon" 120 "Thou clay-brained guts, thou knotty-pated fool, thou whoreson obscene greasy tallow-catch!" 121 "Thou damned and luxurious mountain goat." 122 "Thou elvish-mark'd, abortive, rooting hog!" 123 "Thou leathern-jerkin, crystal-button, knot-pated, agatering, puke-stocking, caddis-garter, smooth-tongue, Spanish pouch!" 124 "Thou lump of foul deformity" 125 "That poisonous bunch-back'd toad!" 126 "Thou sodden-witted lord! Thou hast no more brain than I have in mine elbows " 127 "Thou subtle, perjur'd, false, disloyal man!" 128 "Thou whoreson zed , thou unnecessary letter!" 129 "Thy sin’s not accidental, but a trade." 130 "Thy tongue outvenoms all the worms of Nile." 131 "Would thou wert clean enough to spit upon" 132 "Would thou wouldst burst!" 133 "You poor, base, rascally, cheating lack-linen mate! " 134 "You are as a candle, the better burnt out." 135 "You scullion! You rampallian! You fustilarian! I’ll tickle your catastrophe!" 136 "You starvelling, you eel-skin, you dried neat's-tongue, you bull's-pizzle, you stock-fish-O for breath to utter what is like thee!-you tailor's-yard, you sheath, you bow-case, you vile standing tuck!" 137 "Your brain is as dry as the remainder biscuit after voyage." 138 "Virginity breeds mites, much like a cheese." 139 "Villain, I have done thy mother" 140 ) 141 ### MARTIN LUTHER INSULTS ### 142 declare -a array3=( 143 "You live like simple cattle or irrational pigs and, despite the fact that the gospel has returned, have mastered the fine art of misusing all your freedom." 144 "You shameful gluttons and servants of your bellies are better suited to be swineherds and keepers of dogs." 145 "You deserve not only to be given no food to eat, but also to have the dogs set upon you and to be pelted with horse manure." 146 "Oh, what mad senseless fools you are!" 147 "For this you deserve to have God deprive you of his Word and blessing and once again allow preachers of lies to arise who lead you to the devil - and wring sweat and blood out of you besides." 148 "All your holiness is only stench and filth, and it merits nothing but wrath and damnation." 149 "May your grain spoil in the barn, your beer in the cellar, your cattle perish in the stall. Yes, your entire hoard ought to be consumed by rust so that you will never enjoy it." 150 "You relish and delight in the chance to stir up someone else's dirt like pigs that roll in manure and root around in it with their snouts." 151 "Your sin smells to high heaven." 152 "Your words are so foolishly and ignorantly composed that I cannot believe you understand them." 153 "You are the most insane heretics and ingrafters of heretical perversity." 154 "What you say is a blasphemy that has made you worthy of a thousand deaths." 155 "Behold, indeed, this little golden work of a golden teacher! It is a work most worthy of golden letters, and lest there be something about it which is not golden, it must be handed down by golden disciples, namely, by those about whom it is said, 'The idols of the nations are silver and gold. They have eyes, but they see not.'" 156 "You are worthy only to be mocked by the words of error." 157 "It is presumptuous for people who are as ignorant as you are not to take up the work of a herdsman." 158 "What bilgewater of heresies has ever been spoken so heretically as what you have said?" 159 "What do you mean when you say this? Are you dreaming in the throes of a fever or are you laboring under a madness?" 160 "Your astute minds have been completely turned into stinking mushrooms." 161 "You are the prostitute of heretics!" 162 "I am tired of the pestilent voice of your sirens." 163 "You are a bungling magpie, croaking loudly." 164 "You forgot to purge yourself with hellabore while you were preparing to fabricate this lie." 165 "You are more corrupt than any Babylon or Sodom ever was, and, as far as I can see, are characterized by a completely depraved, hopeless, and notorious godlessness." 166 "Your home, once the holiest of all, has become the most licentious den of thieves, the most shameless of all brothels, the kingdom of sin, death, and hell. It is so bad that even Antichrist himself, if he should come, could think of nothing to add to its wickedness." 167 "What devilish unchristian thing would you not undertake?" 168 "You are an extraordinary creature, being neither God nor man. Perhaps you are the devil himself." 169 "Even if the Antichrist appears, what greater evil can he do than what you have done and do daily?" 170 "It may be that you want to build yourself a heaven of your own, like those jugglers build themselves out of linen cloth at the Shrove Tuesday carnival. Is it not disgusting that we have to hear such foolish and childish things from you?" 171 "In our country, fruit grows on trees and from trees, and meditation upon sin grows from contrition. But in your land, trees may grow on fruits, contrition from sins, people walk on their ears, and everything is upside down." 172 "O you wolf in Christendom!" 173 "You know less than does a log on the ground." 174 "I think that all the devils have at once entered into you." 175 "You are worse than all the devils. What you have done, no devil has ever done. Your end is near, you son of perdition and Antichrist! Stop now, you are going to far!" 176 "You are the true, chief, and final Antichrist." 177 "How far will you go, O devilish pride?" 178 "All Christians should be on guard against your antichristian poison." 179 "I think you received these ideas in your pipe dreams." 180 "You are in all you do the very opposite of Christ as befits a true Antichrist." 181 "You are a person of sin and the child of perdition, leading all the world with you to the devil, using your lying and deceitful ways." 182 "You are not a pious fraud, but an infernal, diabolical, antichristian fraud." 183 "You are the Roman Nimrod and a teacher of sin." 184 "It is the old dragon from the abyss of hell who is standing before me!" 185 "You hold fast to human dreams and the doctrines of devils." 186 "If you who are assembled in a council are so frivolous and irresponsible as to waste time and money on unnecessary questions, when it is the business of a council to deal only with the important and necessary matters, we should not only refuse to obey you, but consider you insane or criminals." 187 "Even Lucifer was not guilty of so great a sacrilege in heaven, for he only presumed to be God's equal. God help us!" 188 "You condemned the holy gospel and replaced it with the teaching of the dragon from hell." 189 "Your words are un-Christian, antichristian, and spoken by the inspiration of the evil spirit." 190 "What happened to the house built on sand in Matthew 7 will also happen to you." 191 "Must we believe your nightmares?" 192 "Look how this great heretic speaks brazenly and sacrilegiously." 193 "You run against God with the horns of your pride up in the air and thus plunge into the abyss of hell. Woe unto you, Antichrist!" 194 "You are the devil's most dangerous tool!" 195 "It seems I must have liars and villains for opponents. I am not worthy in the sight of God that a godly and honorable person should discuss these matters with me in a Christian way. This is my greatest lament." 196 "May the Lord Jesus protect me and all devout souls from your contagion and your company!" 197 "This venom - the mere smell of which kills a man!" 198 "You are a Baal-zebub - that is, a man of flies." 199 "You are full of poisonous refuse and insane foolishness." 200 "You are ignorant, stupid, godless blasphemers." 201 "You moderate enforcer and eulogizer of moderation. You are one of those bloody and deceitful people who affect modesty in words and appearance, but who meanwhile breathe out threats and blood." 202 "We leave you to your own devices, for nothing properly suits you except hypocrisy, flattery, and lies." 203 "In lying fashion you ignore what even children know." 204 "The reward of such flattery is what your crass stupidity deserves. Therefore, we shall turn from you, a sevenfold stupid and blasphemous wise person." 205 "People of your sort are hirelings, dumb dogs unable to bark, who see the wolf coming and flee or, rather, join up with the wolf." 206 "You are a wolf and apostle of Satan." 207 "You are the ultimate scourges of the world, the Antichrist together with your sophists and bishops." 208 "You cowardly slave, you corrupt sycophant, with your sickening advice!" 209 "You are idiots and swine." 210 "Every letter of yours breathes Moabitish pride. So much can a single bull inflate a single bubble that you practically make distinguished asses into gods." 211 "You sophistic worms, grasshoppers, locusts, frogs and lice!" 212 "You completely close your mind and do nothing but shout, "Anathema, anathema, anathema!" so that by your own voice you are judged mad." 213 "Let this generation of vipers prepare itself for unquenchable fire!" 214 "You rush forward as an ass under the pelt of a lion." 215 "In appearance and words you simulate modesty, but you are so swollen with haughtiness, arrogance, pride, malice, villainy, rashness, superciliousness, ignorance, and stupidity that there is nothing to surpass you." 216 "Blind moles!" 217 "We despise your whorish impudence." 218 ) 219 ### EDIT THIS LINE IF YOU ONLY WANT TO USE CERTAIN INSULT LISTS ### 220 messages=( "${array1[@]}" "${array2[@]}" "${array3[@]}" ) 221 222 # If CMD_NOT_FOUND_MSGS array is populated use those messages instead of the defaults 223 [[ -n ${CMD_NOT_FOUND_MSGS} ]] && messages=( "${CMD_NOT_FOUND_MSGS[@]}" ) 224 225 # If CMD_NOT_FOUND_MSGS_APPEND array is populated append those to the existing messages 226 [[ -n ${CMD_NOT_FOUND_MSGS_APPEND} ]] && messages+=( "${CMD_NOT_FOUND_MSGS_APPEND[@]}" ) 227 228 # Seed RANDOM with an integer of some length 229 RANDOM=$(od -vAn -N4 -tu < /dev/urandom) 230 231 # Print a randomly selected message, but only about half the time to annoy the user a 232 # little bit less. 233 if [[ $((${RANDOM} % 2)) -lt 1 ]]; then 234 message=${messages[${RANDOM} % ${#messages[@]}]} 235 printf "\n $(tput bold)$(tput setaf 1)${message}$(tput sgr0)\n\n" >&2 236 fi 237 } 238 239 function_exists () { 240 # Zsh returns 0 even on non existing functions with -F so use -f 241 declare -f $1 > /dev/null 242 return $? 243 } 244 245 # 246 # The idea below is to copy any existing handlers to another function 247 # name and insert the message in front of the old handler in the 248 # new handler. By default, neither bash or zsh has has a handler function 249 # defined, so the default behaviour is replicated. 250 # 251 # Also, ensure the handler is only copied once. If we do not ensure this 252 # the handler would add itself recursively if this file happens to be 253 # sourced multiple times in the same shell, resulting in a neverending 254 # stream of messages. 255 # 256 257 if function_exists command_not_found_handler; then 258 if ! function_exists orig_command_not_found_handler; then 259 eval "orig_$(declare -f command_not_found_handler)" 260 fi 261 else 262 orig_command_not_found_handler () { 263 printf "zsh: command not found: %s\n" "$1" >&2 264 return 127 265 } 266 fi 267 268 command_not_found_handler () { 269 print_message 270 orig_command_not_found_handler "$@" 271 }