Skip to content

Instantly share code, notes, and snippets.

@matthewtodd
Created January 27, 2011 11:30

Revisions

  1. matthewtodd renamed this gist Jan 27, 2011. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. matthewtodd renamed this gist Jan 27, 2011. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. matthewtodd created this gist Jan 27, 2011.
    26 changes: 26 additions & 0 deletions gistfile1.eclass
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    #!/bin/sh

    tmux start-server

    if ! $(tmux has-session -t grow); then
    tmux new-session -d -s grow -n foreground
    tmux send-keys 'cd .' C-m C-l
    tmux send-keys 'AUTOFEATURE=true autotest --quiet' C-m
    tmux split-window -h
    tmux send-keys 'cd .' C-m C-l

    tmux new-window -t grow:1 -n background
    tmux send-keys 'cd .' C-m C-l
    tmux send-keys 'rails server -b 127.0.0.1' C-m
    tmux split-window -h
    tmux send-keys 'cd .' C-m C-l
    tmux send-keys 'spork rspec' C-m
    tmux split-window -h
    tmux send-keys 'cd .' C-m C-l
    tmux send-keys 'spork cucumber' C-m
    tmux select-layout main-vertical

    tmux select-window -t grow:0
    fi

    tmux -2 attach-session -t grow