rage-quit support for bash
HOW TO INSTALL
Put flip
somewhere in your $PATH
and chmod a+x
it.
Copy fuck
into ~/.bashrc
.
•_•)
( •_•)>⌐■-■
(⌐■_■)
Look at some other equally silly/occasionally useful things I've made.
Node.js users
Check out this superior node-based solution by @robotlolita.
Love this. I do a similar thing (though much simpler) on my work laptop (Windows):
[fuck.bat]
@echo off
if [%1]==[] goto usage
set "ExecutableName=%1"
set "Extension=%ExecutableName:~-4%"
echo Ext: %Extension%
if NOT "%Ext%"==".exe" set "ExecutableName=%ExecutableName%.exe"
taskkill /f /im %ExecutableName%
goto :eof
:usage
@echo Error: %ExecutableName% not found.
@echo Usage: %0 ^<ExecutableName^>
exit /B 1