#!/usr/bin/env bash set -e cd ~ youtube-dl -x --audio-format mp3 https://www.youtube.com/watch\?v\=pl3vxEudif8 --output ".changes.%(ext)s" echo 'function git() { if [[ $1 == "merge" ]]; then bash -c "play ~/.changes.mp3 -q &"; fi; command git $@; }' >> .bashrc