Skip to content

Instantly share code, notes, and snippets.

@dfm
Last active December 18, 2015 18:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dfm/5828028 to your computer and use it in GitHub Desktop.
Save dfm/5828028 to your computer and use it in GitHub Desktop.
Change your git push experience forever.

This will change your life. Add this as a git pre-push hook.

How, you ask?

wget https://gist.github.com/dfm/5828028/raw/772270b65a804678db70012d3406f41c79cb53a5/pre-push
chmod +x pre-push
mv pre-push /path/to/your/favorite/repo/.git/hooks
cd /path/to/your/favorite/repo
git push
♫

Where /path/to/your/favorite/repo is the path to the git repository that you want to hook up.

#!/usr/bin/env bash
osascript -e 'tell application "Spotify"
play track "spotify:track:0GugYsbXWlfLOgsmtsdxzg"
end tell'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment