Skip to content

Instantly share code, notes, and snippets.

@lauzi
Created January 31, 2015 07:12
Show Gist options
  • Save lauzi/e0cd684728789ea7407f to your computer and use it in GitHub Desktop.
Save lauzi/e0cd684728789ea7407f to your computer and use it in GitHub Desktop.
#/bin/usr/zsh
alias clearfucks="FUCKSGIVEN=0"
fucksgiven () {
if [ $FUCKSGIVEN = ]; then
export FUCKSGIVEN=0
fi
echo $FUCKSGIVEN fucks given
}
fuck () {
export FUCKSGIVEN=$(($FUCKSGIVEN + 1))
for arg in "$@"; do
if [ $arg = "fuck" ]; then
export FUCKSGIVEN=$(($FUCKSGIVEN + 1))
fi
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment