Skip to content

Instantly share code, notes, and snippets.

@jhines2k7
Created August 8, 2023 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jhines2k7/989343351911bae55e2d62d01b1545b1 to your computer and use it in GitHub Desktop.
Save jhines2k7/989343351911bae55e2d62d01b1545b1 to your computer and use it in GitHub Desktop.
Short script to split terminal into 4 panes
#!/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