Created
January 31, 2015 07:12
-
-
Save lauzi/e0cd684728789ea7407f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#/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