Add .tmux file
This commit is contained in:
parent
2000845f79
commit
c78d0f01a6
16
.tmux
Executable file
16
.tmux
Executable 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"
|
|
@ -1,7 +0,0 @@
|
||||||
name: oliverdavies-uk-drupal
|
|
||||||
root: .
|
|
||||||
|
|
||||||
windows:
|
|
||||||
- vim: nvim
|
|
||||||
- server: docker compose up
|
|
||||||
- shell:
|
|
Loading…
Reference in a new issue