I ran across a fantastically entertaining tweet this morning, advertising “rage-quit support for bash”:
It’s hilarious and silly and excellent, except it only works in bash. If you run a less-common shell – like, say, fish, the provided function won’t work.
Now, I don’t really know bash scripting and I really don’t know fish scripting, but I was able to convert from one to the other, so I can proudly announce rage-quit support for fish:
function fuck killall -9 $argv if test $status = 0 echo echo " (╯°□°）╯︵" (echo $argv|flip ^/dev/null) echo end end
Put that in your
~/.config/fish/config.fish file after setting up
flip as described in the original gist, linked above.
•_•) <'_>< ( •_•)>⌐■-■ <o_>< (⌐■_■) <^_><