Skip to content

Instantly share code, notes, and snippets.

@lukechilds
Created September 22, 2020 09:04
Show Gist options
  • Save lukechilds/b277aa109598f44dae90d0f1154777f8 to your computer and use it in GitHub Desktop.
Save lukechilds/b277aa109598f44dae90d0f1154777f8 to your computer and use it in GitHub Desktop.
Capture tmux scrollback buffer

Capture tmux scrollback buffer

Using tmux session

Ctrl-b + :

capture-pane -S -10000

Ctrl-b + :

save-buffer buffer.txt

Using tmux CLI

tmux capture-pane -pS -10000 > buffer.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment