#!/bin/sh

emacsclient -c ~/vcs/uncloud/ &

tmux new -s uncloud-dev \; \
     send-keys 'cd ~/vcs/uncloud; . ./venv/bin/activate' C-m \; \
     split-window -v \; \
     send-keys 'cd ~/vcs/uncloud; . ./venv/bin/activate; python manage.py runserver "[::]:8000"' C-m \; \
     new-window  \; \
     send-keys 'cd ~/vcs/uncloud; . ./venv/bin/activate; python manage.py test' C-m \; \
    || tmux a -t uncloud-dev