tmux new-session -s syncopotamus -d

tmux new-window -c ~/repos/syncopotamus-rails -n rails
tmux set-environment -t syncopotamus SYNCOPOTAMUS_BC_CLIENT_ID "de4602c11dcdacfbe8f1a172f84b4e88b7a1adeb"
tmux set-environment -t syncopotamus SYNCOPOTAMUS_BC_CLIENT_SECRET "710ddd0ec04c098adca8564e4caab2c7034ad272"
tmux set-environment -t syncopotamus SYNCOPOTAMUS_BC_REDIRECT_SERVER "http://localhost"

tmux split-window -h -c ~/repos/syncopotamus-rails
tmux resize-pane -t syncopotamus:rails.0 -x 90%
tmux send-keys -t syncopotamus:rails.0 'nvim' C-m
tmux send-keys -t syncopotamus:rails.1 'rails s' C-m

tmux select-window -t syncopotamus:rails
tmux select-pane -t 0
tmux -2 attach-session -t syncopotamus
