summaryrefslogtreecommitdiff
path: root/files/changes.sh
blob: 4920dce1d865716ffed075eec1b7efb1400e5af7 (plain)
1
2
3
4
5
6
7
8
9
#!/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