Add .tmux script to start the project in tmux

[ci skip]
This commit is contained in:
Oliver Davies 2023-12-06 22:51:06 +00:00
parent 07a36ed4cc
commit 0b0a9d7b59
2 changed files with 17 additions and 0 deletions

13
.tmux Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
set -o errexit
set -o nounset
session_name="oliverdavies-uk"
# 1. Main window: Vim, server, shell
tmux split-pane -t "${session_name}:1" -h
tmux send-keys -t "${session_name}:1.left" "nvim +GoToFile" Enter
tmux send-keys -t "${session_name}:1.right" "./run start" Enter
tmux split-pane -t "${session_name}:1" -v
tmux send-keys -t "${session_name}:1.bottom-right" "git status --short" Enter

4
run
View file

@ -72,5 +72,9 @@ function help {
printf "\nExtended help:\n Each task has comments for general usage\n"
}
function start {
astro dev
}
TIMEFORMAT=$'\nTask completed in %3lR'
time "${@:-help}"