Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- # Put this in your .git/hooks/post-checkout and smoke it.
- function current_branch_name {
- git symbolic-ref HEAD | cut -d '/' -f 3
- }
- if [ $(current_branch_name) == 'master' ]; 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 " ${lines[$((RANDOM%${#lines[*]}))]}";
- fi
Add Comment
Please, Sign In to add comment