Created
July 23, 2008 15:24
-
-
Save monde/1783 to your computer and use it in GitHub Desktop.
launch gvim and autotest in an gnome terminal side by side
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/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} & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment