Skip to content

Instantly share code, notes, and snippets.

@voodoocode
Created April 21, 2015 13:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voodoocode/ad1f872725171f06658a to your computer and use it in GitHub Desktop.
Save voodoocode/ad1f872725171f06658a to your computer and use it in GitHub Desktop.
post-checkout hook "Master"
#!/bin/bash
branch=$(git symbolic-ref HEAD | cut -d '/' -f 3);
if [ "master" == "$branch" ]; then
lines[0]="Master, Master, where's the dreams that I've been after?"
lines[1]="Master, Master, you promised only lies"
lines[2]="Laughter, laughter, all I hear or see is laughter"
lines[3]="Laughter, laughter, laughing at my cries"
echo -e "\033[1;31m ${lines[$((RANDOM%${#lines[*]}))]} \033[0m";
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment