Skip to content

Instantly share code, notes, and snippets.

@hortinstein
Created July 5, 2011 12:18
Show Gist options
  • Save hortinstein/1064735 to your computer and use it in GitHub Desktop.
Save hortinstein/1064735 to your computer and use it in GitHub Desktop.
screenrc for automating some rails setup (spork, autotest, server)
screen -t home
split -v
focus down
screen bash -c 'echo "rails server"; cd Documents/railsTutorial/sample_app/; rails s; exec bash -i;'
split
focus down
screen bash -c 'echo "spork"; cd Documents/railsTutorial/sample_app/; sleep 5; bin/spork; exec bash -i; '
split -v
focus down
screen bash -c 'echo "sql output"; cd Documents/railsTutorial/sample_app/; exec bash -i;'
focus down
screen bash -c 'echo "autotest"; cd Documents/railsTutorial/sample_app/; sleep 25; autotest ; exec bash -i;'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment