-
Notifications
You must be signed in to change notification settings - Fork 1
/
tmux.sh
executable file
·34 lines (26 loc) · 1.06 KB
/
tmux.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/bin/zsh
tmux start-server;
TMUX= tmux new-session -d -s simplecasper -n daemons
tmux send-keys -t simplecasper:0.0 source\ \~/.zshrc C-m
tmux send-keys -t simplecasper:0.0 simplecasper\ -l\ casper:debug\ run\ 0 C-m
tmux splitw -t simplecasper:0
tmux select-layout -t simplecasper:0 tiled
tmux send-keys -t simplecasper:0.1 source\ \~/.zshrc C-m
tmux send-keys -t simplecasper:0.1 simplecasper\ -l\ casper:debug\ run\ 1 C-m
tmux splitw -t simplecasper:0
tmux select-layout -t simplecasper:0 tiled
tmux send-keys -t simplecasper:0.2 source\ \~/.zshrc C-m
tmux send-keys -t simplecasper:0.2 simplecasper\ -l\ casper:debug\ run\ 2 C-m
tmux splitw -t simplecasper:0
tmux select-layout -t simplecasper:0 tiled
tmux send-keys -t simplecasper:0.3 source\ \~/.zshrc C-m
tmux send-keys -t simplecasper:0.3 simplecasper\ -l\ casper:debug\ run\ 3 C-m
tmux select-layout -t simplecasper:0 tiled
tmux select-pane -t simplecasper:0.0
tmux select-window -t 0
tmux select-pane -t 0
if [ -z "$TMUX" ]; then
tmux -u attach-session -t simplecasper
else
tmux -u switch-client -t simplecasper
fi