Add .tmux
script to start the project in tmux
[ci skip]
This commit is contained in:
parent
07a36ed4cc
commit
0b0a9d7b59
2 changed files with 17 additions and 0 deletions
13
.tmux
Executable file
13
.tmux
Executable 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
4
run
|
@ -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}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue