Skip to content

Instantly share code, notes, and snippets.

@imposeren
Created March 22, 2013 08:58
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 imposeren/5219888 to your computer and use it in GitHub Desktop.
Save imposeren/5219888 to your computer and use it in GitHub Desktop.
#!/bin/sh
cd "${HOME}/.local/Sublime Text 2"
./sublime_text & st_pid=$!
urxvt -name borderless_urxvt & rxvt_pid=$!
onExit() {
echo
echo Exiting
kill -15 $rxvt_pid 2>/dev/null
kill -15 $st_pid 2>/dev/null
echo All prcesses stopped
}
trap "onExit" KILL HUP INT TERM
wait $st_pid ;
onExit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment