Last active
December 15, 2015 08:49
-
-
Save DrummerHead/5233328 to your computer and use it in GitHub Desktop.
Get a lovely string that resumes what you've been working on
This file contains 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
#!/Users/dh/.rvm/rubies/ruby-1.9.3-p362/bin/ruby -w | |
magia = %x[git log --pretty=oneline --no-merges --author=DrummerHead --since='yesterday'] | |
unless magia.empty? | |
magia.gsub!(/^\w* /, "").gsub!(/\n/, "; ") | |
puts magia | |
else | |
puts "Gotta worky work!" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment