How to copy from tmux running in putty to windows clipboard

前端 未结 5 633
难免孤独
难免孤独 2021-01-30 11:16

ENV: I am running tmux in putty, on a windows 7 laptop. I do ssh to linux systems while working.

I have to solve two glitches with tmux, before using it for all my needs.

5条回答
  •  难免孤独
    2021-01-30 11:49

    Assuming mouse mode is already on, add this to your tmux config and selecting will now copy to your clipboard.

    bind -Tcopy-mode MouseDragEnd1Pane send -X copy-selection-and-cancel\; run-shell -b "tmux show-buffer | clip"
    

    Tested on v2.6

提交回复
热议问题