Skip to content

Instantly share code, notes, and snippets.

@aont
Last active April 25, 2025 06:28
Show Gist options
  • Save aont/8071d6e54bec750b547f2db087a270f6 to your computer and use it in GitHub Desktop.
Save aont/8071d6e54bec750b547f2db087a270f6 to your computer and use it in GitHub Desktop.

tmux copy paste

  • Ctrl+B [ to enter select mode
  • move cursor
  • Ctrl Space to start select
  • move cursor to set select area
  • Alt+W or Ctrl+W to copy area
  • Ctrl+B ] to paste

FYI

you can generate encoded string by pasting buffer here:
bzip2 -c | openssl base64 -e | tr -d '\n'
(bzip2 is optional)

you can restore the buffer by this command:
openssl base64 -d | bzip2 -d -c

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