Last Updated: February 25, 2016
·
594
· jerome

tmux bootstrap script

i usually have a tmux script per project which i run everytime i need to work on it

#!/bin/sh

tmux new-session -d -s project

tmux new-window -t project:2 -n 'vim' 'vim'
tmux new-window -t project:3 -n 'server' './script/server'
tmux new-window -t project:4 -n 'mysql' 'mysql -u root'

tmux select-window -t project:1
tmux -2 attach-session -t project