summaryrefslogtreecommitdiff
path: root/files/changes.sh
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2019-11-20 16:27:10 +0100
committerJulian T <julian@jtle.dk>2019-11-20 16:27:10 +0100
commit62c20802ff84f97b1af2d56ca8ed07163d91fad1 (patch)
treebaa3cf93ce3e22cc78d02aa3a66235d0f5bdea5f /files/changes.sh
parent9dde84d5c54da56adc7d77494b634113c9d58522 (diff)
Added files dir
Diffstat (limited to 'files/changes.sh')
-rw-r--r--files/changes.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/files/changes.sh b/files/changes.sh
new file mode 100644
index 0000000..4920dce
--- /dev/null
+++ b/files/changes.sh
@@ -0,0 +1,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
+
+