Change .tmux to .tmux-sessionizer

This commit is contained in:
Oliver Davies 2024-12-07 01:31:58 +00:00
parent bf3485b035
commit 63aa375cf9
2 changed files with 7 additions and 21 deletions

21
.tmux
View file

@ -1,21 +0,0 @@
#!/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 new-window -t "$1" -c "$PWD/source/_daily_emails"
tmux select-window -t "$1:1"

7
.tmux-sessionizer Executable file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env bash
tmux new-window -dn shell
tmux new-window -dn server
tmux new-window -dn daily_emails -c "source/_daily_emails"
tmux send-keys -t server "./run start" Enter