Created
February 22, 2014 07:55
-
-
Save SietsevanderMolen/9150193 to your computer and use it in GitHub Desktop.
Fuck you. Rage quit support for zsh.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function swagdatstring() { | |
local chars=" -_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" | |
local flipped=" -_ɐqɔpǝɟɓɥıɾʞlɯuodbɹsʇnʌʍxʎz∀𐐒ƆᗡƎℲ⅁HIſ⋊⅂WNOԀΌᴚS⊥∩ΛMX⅄Z⇂ᄅƐㄣގ9ㄥ860" | |
local newstring='' | |
for ((i = ${#1}; i > 0; i--)); do | |
newstring+=${flipped[${chars[(i)${1[$i]}*]}]} | |
done | |
echo $newstring | |
} | |
function fuck() { | |
if [ $# -le 1 ]; then | |
print "Usage: fuck you [process]" | |
return 0 | |
fi | |
pkill -9 $@[2] | |
if [ $? -eq 0 ]; then | |
print "\n(╯°□°)╯︵ " $(swagdatstring $@[2]) "\n" | |
else | |
print "\n(; ̄Д ̄) . o O( It’s not very effective... )\n" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment