Add .tmux file

This commit is contained in:
Oliver Davies 2024-07-08 19:29:30 +01:00
parent 2000845f79
commit c78d0f01a6
2 changed files with 16 additions and 7 deletions

16
.tmux Executable file
View file

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -o errexit
# 1. Vim.
tmux send-keys -t "$1:1" "nvim" Enter
# 2. Server.
tmux new-window -t "$1" -c "$PWD"
tmux send-keys -t "$1:2" "docker compose up --remove-orphans" Enter
# 3. General shell use.
tmux new-window -t "$1" -c "$PWD"
tmux send-keys -t "$1:3" "git status" Enter
tmux select-window -t "$1:1"

View file

@ -1,7 +0,0 @@
name: oliverdavies-uk-drupal
root: .
windows:
- vim: nvim
- server: docker compose up
- shell: