Skip to content

Instantly share code, notes, and snippets.

@jasonblanchard
Created November 12, 2014 19:32
Show Gist options
  • Select an option

  • Save jasonblanchard/7e28d019b0f13e231c16 to your computer and use it in GitHub Desktop.

Select an option

Save jasonblanchard/7e28d019b0f13e231c16 to your computer and use it in GitHub Desktop.
#! /bin/bash
tmux start-server
cd ./apprennet-com
tmux new-session -d -s apprennet
# Code window
tmux rename-window -t apprennet:0 code
tmux new-window -t apprennet:1 -n git
# Set up console windows
tmux new-window -t apprennet:2 -n console
tmux select-window -t apprennet:2
tmux send-keys -t apprennet:2 "foreman start" C-m
tmux split-window -h
tmux send-keys -t apprennet:2 "rails c" C-m
tmux select-window -t apprennet:2
tmux attach -t apprennet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment