Created
February 26, 2016 20:10
Revisions
-
sumpygump created this gist
Feb 26, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ #!/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