tmux -2 new-session -d -s wega -n 'all' 'make runall' tmux new-window -t wega:2 -n 'brain & GUI' "bash" tmux send-keys -t wega:2.0 'cd wegabrain; make run' Enter tmux split-window -v "bash" tmux send-keys -t wega:2.1 'cd wegagui/wegagui/webapp; make serve' Enter tmux select-window -t wega:2 tmux -2 attach-session -t wega