forked from coral-xyz/backpack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtmux-mobile.sh
More file actions
31 lines (24 loc) · 714 Bytes
/
tmux-mobile.sh
File metadata and controls
31 lines (24 loc) · 714 Bytes
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
#!/bin/bash
# Create a new tmux session
tmux new-session -d -s backpack
tmux rename-window 'terminal'
# Split the window vertically
tmux split-window -v -p20
tmux split-window -h
# Run the user-specified command in the top left pane
tmux select-pane -t2
tmux send-keys "cd packages/app-mobile && yarn ios" C-m
tmux select-pane -t3
tmux send-keys "yarn start:mobile" C-m
tmux new-window -n 'workspace'
tmux select-window -t1 \; select-pane -t1 \; send-keys "tmux resize-pane -t1 -y 70" Enter
tmux attach-session -t backpack
# ----------------------------
# 90% viewport
# :q
#
# ----------------------------
# 10% viewport |
# app-mobile | backpack root
# yarn ios | yarn start:mobile
# |