Skip to content

Instantly share code, notes, and snippets.

@unflores
Last active January 27, 2016 14:49
Show Gist options
  • Save unflores/733291577e7af9ebe513 to your computer and use it in GitHub Desktop.
Save unflores/733291577e7af9ebe513 to your computer and use it in GitHub Desktop.
I always forget this. I should probably include it in my home directory w defaults for setup
#!/bin/sh
tmux new-session -d -s dev -c '/infra'
# First window already created
tmux rename-window 'docker'
# Create all other windows
tmux new-window -t dev:2 -d -c '/home/ubuntu/server' -n 'chef'
tmux new-window -t dev:3 -d -c '/home/ubuntu/server' -n 'chef-client'
tmux new-window -t dev:4 -d -c '/infra/deployment/blog_austinflores/current' -n 'blog'
tmux new-window -t dev:5 -d -n 'prod' "ssh -i /home/ubuntu/.ssh/ user@place"
# Start at 1
tmux select-window -t dev:1
# Attach the session and start tmuxing
tmux -2 attach-session -t dev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment