Skip to content

Instantly share code, notes, and snippets.

@tomaszprasolek
Created April 2, 2020 05:00
Show Gist options
  • Save tomaszprasolek/646efb7ae80e75b4f30ca88b3248a86d to your computer and use it in GitHub Desktop.
Save tomaszprasolek/646efb7ae80e75b4f30ca88b3248a86d to your computer and use it in GitHub Desktop.
Play sound after commit
#!/bin/sh
toplevel_path=`git rev-parse --show-toplevel`
powershell -c "(New-Object System.Media.SoundPlayer '$toplevel_path\.git\hooks\applause10.wav').PlaySync()" > /dev/null 2>&1 &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment