Skip to content

Instantly share code, notes, and snippets.

@monde
Created July 23, 2008 15:24
Show Gist options
  • Save monde/1783 to your computer and use it in GitHub Desktop.
Save monde/1783 to your computer and use it in GitHub Desktop.
launch gvim and autotest in an gnome terminal side by side
#!/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