Skip to content

Commit 62de387

Browse files
committed
Scripts: add tmux
1 parent 3a45994 commit 62de387

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.scripts/tmux.sh

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)