Skip to content
A set of tmux scripts to setup a remote pairing session for Rails with VIM and Spork
Shell
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
README.markdown
install.sh
tmux-attach
tmux-new
tmux-start
tmux-stop

README.markdown

Tmux remote pairing scripts

Just a set of scripts to help setup, attach to and shutdown a tmux session for remote rails pairing over ssh using VIM.

Requirements

  • Tmux
  • Rails
  • VIM
  • Rspec
  • Spork/Guard

You will also need a /var/tmux folder with group permissions. Recommended route is to create a tmux group and add all users that will be sharing the session to it and then give group permissions to the folder.

Installation

  1. Clone to a folder anywhere you like
  2. run ./install.sh to create symlinks in /usr/local/bin

Usage

The host user starts the session from the rails project folder using tmux-start. This will create tmux server session called 'pairing' with four windows:-

  1. VIM - The coding window
  2. Server - The rails server running on port 3000
  3. Bash - A general usage bash shell
  4. Spork - A spork session to autorun the specs

The remote user can then ssh into the host machine and run tmux-attach.

Once the pairing session has finished run tmux-stop to kill the session and the server.

Something went wrong with that request. Please try again.