Created
February 26, 2016 20:10
-
-
Save sumpygump/01550044bbfdc16f630a to your computer and use it in GitHub Desktop.
Maybe Git
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/bash | |
# Maybe Git | |
# INSTALLATION | |
# 1. Move this file into your ~/bin directory | |
# mv ./maybe-git ~/bin | |
# 2. Then run the following command: | |
# alias git='~/bin/maybe-git' | |
GIT=`which git` | |
chance=$RANDOM | |
let "chance %= 10" | |
# A 1 in 10 chance that the command will yield "Your Mom" instead of the | |
# desired command | |
if [ "$chance" = "3" ]; then | |
echo $'__ __ __ __ ' | |
echo $'\ \ / /__ _ _ _ __ | \/ | ___ _ __ ___ ' | |
echo $' \ V / _ \| | | | \'__| | |\/| |/ _ \| \'_ ` _ \ ' | |
echo $' | | (_) | |_| | | | | | | (_) | | | | | |' | |
echo $' |_|\___/ \__,_|_| |_| |_|\___/|_| |_| |_|' | |
else | |
$GIT $@ | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment