Skip to content

Commit be9fdd1

Browse files
committed
Scripts: add tmux
1 parent a1b01f4 commit be9fdd1

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

scripts/tmux.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
#!/bin/bash
2+
set -exo pipefail
3+
4+
SESSION="libphp"
5+
PWD=$(pwd)
6+
7+
# Start a new session
8+
tmux new-session -d -s $SESSION -c ${PWD}/libs/amazon-linux-2-v83
9+
10+
# Split the window into multiple panes
11+
tmux split-window -h -t $SESSION:0.0 -c ${PWD}/libs/amazon-linux-2-v82
12+
tmux split-window -v -t $SESSION:0.1 -c ${PWD}/libs/amazon-linux-2-v81
13+
tmux split-window -v -t $SESSION:0.2 -c ${PWD}/libs/amazon-linux-2-v80
14+
15+
# Tidy up the panes
16+
tmux select-layout -t $SESSION:0 tiled
17+
18+
# Focus on the first pane
19+
tmux select-pane -t $SESSION:0.0
20+
21+
# Attach to session
22+
tmux attach -t $SESSION

0 commit comments

Comments
 (0)