parent
a4eff9a0d3
commit
8298787bcb
21
.tmux
Executable file
21
.tmux
Executable file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/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"
|
Loading…
Reference in a new issue