Skip to content

Instantly share code, notes, and snippets.

@sumpygump
Created February 26, 2016 20:10
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sumpygump/01550044bbfdc16f630a to your computer and use it in GitHub Desktop.
Save sumpygump/01550044bbfdc16f630a to your computer and use it in GitHub Desktop.
Maybe Git
#!/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