Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save wytten/8151ef578a39b33118e9f34d6c6b16d3 to your computer and use it in GitHub Desktop.
Save wytten/8151ef578a39b33118e9f34d6c6b16d3 to your computer and use it in GitHub Desktop.
function play {
local wav=`cygpath -W`/Media/$1.wav
if [ -f "$wav" ]; then
cp "$wav" /dev/dsp
else
echo "$wav" not found
fi
}
function tada {
play tada
}
function doit_good {
ls && tada
}
function doit_bad {
wc /tmp || play chord
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment