Skip to content

Instantly share code, notes, and snippets.

@reyk
Last active Nov 23, 2018
Embed
What would you like to do?
If you're waiting for your compiler to finish... works perfectly with Rust and "j cargo build"
#!/bin/sh
SESSION=$(openssl rand -hex 8)
SONG=~/Downloads/Jeopardy-theme-song.mp3
tmux new-session -d -s ${SESSION} "mplayer -loop 0 ${SONG}"
$@
RET=$?
tmux kill-session -t ${SESSION}
exit $RET
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment