Coding

Rage-quit support for fish shell


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[2]
    if test $status = 0
        echo
        echo " (╯°□°)╯︵" (echo $argv[2]|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_><
(⌐■_■)       <^_><
Coding
Code faster with simple Sublime Text improvements
Coding
Gulp.js – an AMAZING build system!
There are currently no comments.