Add .tmux

This commit is contained in:
Oliver Davies 2024-07-31 01:51:53 +01:00
parent 53ee6b4894
commit 0dced1dfb2

19
.tmux Executable file
View file

@ -0,0 +1,19 @@
#!/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" "./run start" Enter
tmux split-window -t "$1" -v
tmux send-keys -t "$1:2.bottom" "(cd assets && ../run npm:build:css)" 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"