Skip to content

Instantly share code, notes, and snippets.

@reyk
Last active November 23, 2018 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reyk/63b852e97cc3ba1e51dd8963869c7d58 to your computer and use it in GitHub Desktop.
Save reyk/63b852e97cc3ba1e51dd8963869c7d58 to your computer and use it in GitHub Desktop.
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