#!/usr/bin/env bash # This requires that you have Vim or NeoVim installed to work. Otherwise change # this to use Nano or Emacs instead. set -x set -e # Create a new tmux session by issuing a command then detaching from that session. # The Session is named AzDO. The Window is named Vim. /usr/bin/tmux new-session -d -s AzDO -n Vim nvim . # Now we'll create a new-window in the session AzDO and name the new window Console # This by default creates a new terminal. /usr/bin/tmux new-window -t AzDO -n Console # Now we'll set the active window back to AzDO's first window /usr/bin/tmux select-window -t AzDO:1 # After all that setup, we connect back to our detached tmux session named AzDO. /usr/bin/tmux attach -t AzDO