Skip to content

Instantly share code, notes, and snippets.

@dcchambers
Created April 2, 2021 13:37
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 dcchambers/683f2b02aea1eac144c4201fb4d7dd98 to your computer and use it in GitHub Desktop.
Save dcchambers/683f2b02aea1eac144c4201fb4d7dd98 to your computer and use it in GitHub Desktop.
Copy & Paste in tmux

How to copy & paste in Tmux (with default keybindings)

  • CTRL+B, then [ to enter copy mode and be able to move around the screen with arrow keys.
  • Find the text you want to copy.
  • Press CTRL+SPACE to start copying.
  • Select the text with arrow keys.
  • Press CTRL+W to copy the highlighted text.
    • This automatically exits copy mode.
    • You now have text saved the the Tmux copy buffer.
  • Press CTRL+B, then ] to paste your text.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment