Skip to content

Instantly share code, notes, and snippets.

@davidalger
Last active April 19, 2021 14:55
Show Gist options
  • Save davidalger/78bd5af23cd69fb07531beb7b102be0c to your computer and use it in GitHub Desktop.
Save davidalger/78bd5af23cd69fb07531beb7b102be0c to your computer and use it in GitHub Desktop.

General cheatsheet

long buffer support

Add the following to ~/.tmux.conf for long buffer support and ability to write to file afterwards:

set-option -g history-limit 250000
bind-key P command-prompt -p 'save history to filename:' -I '~/tmux.history' 'capture-pane -S -250000 ; save-buffer %1 ; delete-buffer'

To save buffer to file

Type Ctrl+B -> Shift+P then enter filename and hit Enter to save

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