We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1b01f4 commit be9fdd1Copy full SHA for be9fdd1
scripts/tmux.sh
@@ -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