Created
October 10, 2012 13:58
-
-
Save somebody32/3865805 to your computer and use it in GitHub Desktop.
Autopost commit photos to twitter
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
#!/bin/zsh | |
forked_image() { | |
mkdir -p ~/.git_shots | |
filename="$(date +%s)_$(basename $PWD).jpg" | |
imagesnap -q -w 3 ~/.git_shots/$filename | |
sleep 2 | |
NOEXEC=0 rvm default do t update "New commit from @somebody32" -f ~/.git_shots/$filename >/dev/null | |
} | |
forked_image & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment