#!/bin/bash
# Example session: demo
# Usage: tmuxifier load-session demo
# Edit:  tmuxifier edit-session demo

session_root "$HOME"

if initialize_session "demo"; then
  new_window "editor"
  new_window "server"
  new_window "shell"

  select_window "editor"
  run_cmd "cd ~ && nvim ."

  select_window "server"
  run_cmd "echo 'Server ready'"

  select_window "shell"
  run_cmd "echo 'Shell ready'"

  select_window "editor"
  finalize_and_go_to_session
fi
