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 3a45994 commit 62de387Copy full SHA for 62de387
.scripts/tmux.sh
@@ -0,0 +1,24 @@
1
+#!/bin/bash
2
+set -exo pipefail
3
+
4
+SESSION="vercel-examples"
5
+PWD=$(pwd)
6
7
+# Start a new session
8
+tmux new-session -d -s $SESSION -c ${PWD}/php-8.3
9
10
+# Split the window into multiple panes
11
+tmux split-window -h -t $SESSION:0.0 -c ${PWD}/php-8.2
12
+tmux split-window -v -t $SESSION:0.1 -c ${PWD}/php-8.1
13
+tmux split-window -v -t $SESSION:0.2 -c ${PWD}/php-8.0
14
+tmux split-window -h -t $SESSION:0.3 -c ${PWD}/php-7.4
15
+tmux split-window -v -t $SESSION:0.4 -c ${PWD}/php-exec
16
17
+# Tidy up the panes
18
+tmux select-layout -t $SESSION:0 tiled
19
20
+# Focus on the first pane
21
+tmux select-pane -t $SESSION:0.0
22
23
+# Attach to session
24
+tmux attach -t $SESSION
0 commit comments