Created
March 22, 2013 08:58
-
-
Save imposeren/5219888 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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