Skip to content

Instantly share code, notes, and snippets.

@ckunte
Last active August 3, 2019 12:54
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 ckunte/0c5c7941db3ced7f079fd5227ee12dd4 to your computer and use it in GitHub Desktop.
Save ckunte/0c5c7941db3ced7f079fd5227ee12dd4 to your computer and use it in GitHub Desktop.
Copy and paste in tmux

In Windows (Cygwin, via)

Using mouse (ensure the following is in your .tmux.conf file: set -g mouse on)

  1. Copy text: Hold shift + select text with left-button
  2. Paste text: Hold shift + middle-button

In macOS (Terminal, via)

  1. Copy text: Hold fn + cmd + c
  2. Paste text: Hold fn + cmd + v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment