#!/bin/bash DIR="${1}" if [ ! -d "${DIR}" ]; then echo "call me with a directory, e.g.:" echo "${0} /some/path/to/dir" exit 1 fi gnome-terminal --geometry=130x35+345+250 \ --window --working-directory=${DIR} -t "script server" -e "ruby script/server" \ --tab --working-directory=${DIR} -t "script console" -e "ruby script/console" \ --tab --working-directory=${DIR} -t "autotest" -x autotest & gvim -c ":wincmd s" -geometry 120x60+1285+0 ${DIR} &