Skip to content

Instantly share code, notes, and snippets.

@seqizz
Last active December 17, 2015 05:25
Show Gist options
  • Save seqizz/9145148 to your computer and use it in GitHub Desktop.
Save seqizz/9145148 to your computer and use it in GitHub Desktop.
Fuck with approval
# 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