Change .tmux to .tmux-sessionizer
This commit is contained in:
parent
bf3485b035
commit
63aa375cf9
21
.tmux
21
.tmux
|
@ -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
7
.tmux-sessionizer
Executable 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
|
Loading…
Reference in a new issue