Created
August 8, 2023 21:48
-
-
Save jhines2k7/989343351911bae55e2d62d01b1545b1 to your computer and use it in GitHub Desktop.
Short script to split terminal into 4 panes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Create a new tmux session without attaching to it | |
tmux new-session -d -s informed-observer | |
# Split the first pane vertically | |
tmux split-window -v | |
# Select pane 0 | |
tmux select-pane -t 0 | |
# Split the selected pane horizontally | |
tmux split-window -h | |
# Select pane 1 | |
tmux select-pane -t 1 | |
# Split the selected pane vertically | |
tmux split-window -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment