Last active
December 17, 2015 05:25
-
-
Save seqizz/9145148 to your computer and use it in GitHub Desktop.
Fuck with approval
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
# New version, credits to tcky on /r/linux | |
# add this to .zshrc/.bashrc | |
# dependent to "toilet" package | |
# works like : http://i.imgur.com/xdcz614.png | |
function fuck() { | |
if [ ! -z "$1" ]; then | |
pgrep -lfn $1 | |
echo -n "kill? (y/N) " | |
read isKill | |
[[ $isKill == "y" ]] && | |
pkill -9 -n $1 >/dev/null 2>&1 && | |
echo -e "\n (╯°□°)╯︵ $(echo $1 | toilet -f term -F rotate)\n" | |
else | |
echo "Which one?" | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment