Skip to content

Instantly share code, notes, and snippets.

@ericreeves
Last active November 15, 2022 01:07
Show Gist options
  • Save ericreeves/0340e4edb451bcab6c6f271abebba434 to your computer and use it in GitHub Desktop.
Save ericreeves/0340e4edb451bcab6c6f271abebba434 to your computer and use it in GitHub Desktop.
tmux Monitoring Panes Example
send-keys 'echo Top Left' C-m
split-window -h
send-keys 'echo Top Right' C-m
select-pane -t 0
split-window -v
send-keys 'echo Bottom Left' C-m
select-pane -t 2
split-window -v
send-keys 'echo Bottom Right' C-m
  1. Install tmux-up (https://github.com/jamesottaway/tmux-up)
curl -L https://git.io/tmux-up -o /usr/local/bin/tmux-up
wget https://git.io/tmux-up -O /usr/local/bin/tmux-up
chmod u+x /usr/local/bin/tmux-up
  1. Downloading monitoring.conf below.
  2. tmux-up monitoring.conf

This will create a session named 'monitoring' if it does not already exist, or attach to it if it does.

@ericreeves
Copy link
Author

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment