I am currently on MacOS Ventura. I typically use the Mac Terminal utility to ssh into an Ubuntu 20.04 machine. Once I've ssh'd into the Ubuntu machine, I'd like to use tmux (3.0a) to manage multiple panes/windows, but I'm having trouble copying from the tmux session to my mac.
I have installed xclip on the Ubuntu machine. and my .tmux.conf
file looks like:
# Mouse support (e.g., click on different panes)
set -g mouse on
# Extend the history (line limit) in each pane
set-option -g history-limit 50000
set-window-option -g mode-keys vi
bind P paste-buffer
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi r send-keys -X rectangle-toggle
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
I got these commands from this blog and this stackoverflow question. While the vi key bindings work fine within tmux, the buffer contents do not percolate to my mac's copy buffer.
I'd appreciate any help with this!