Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
This is how I bootstrap my envoironment. It's a small shellscript that will open a new tab and run the command past as argument to it.
# Credits goes to
# I just slightly modified it to take an argument.
new_tab() {
osascript -e "tell application \"Terminal\"" \
-e "tell application \"System Events\" to keystroke \"t\" using {command down}" \
-e "do script \"cd $pwd; clear; $1;\" in front window" \
-e "end tell"
> /dev/null
new_tab mongod
new_tab "redis-server /usr/local/etc/redis.conf"
new_tab "foreman start"
new_tab spork
new_tab "rvmsudo passenger start -p 80 --user=<username>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment