• 0 Posts
  • 16 Comments
Joined 1 year ago
cake
Cake day: August 9th, 2023

help-circle














  • Copying in tmux (assuming default keybindings):

    1. Enter copy mode with Ctrl+b, [
    2. Position the cursor at the start of the text to be copied, press Ctrl+SPACE to start copying
    3. Position the cursor at the end of the text, press Alt+w or Ctrl+w to copy into the tmux buffer
    4. Press Ctrl+b, ] to paste, possibly into different pane :)

    By ‘copy’, I meant between different tmux panes/windows.

    If you open tmux on your host, split it into two panes and SSH into the server in one of them, then you can use this copy functionality. I’m personally not aware of a way to copy between a remote and local tmux session.