tmux可以使用这个配置:oh my tmux

然后在.tmux.conf.local中将以下选项设置为true:

# -- clipboard -----------------------------------------------------------------

# in copy mode, copying selection also copies to the OS clipboard
# - true
# - false (default)
# - disabled
# on Linux, this requires xsel, xclip or wl-copy
tmux_conf_copy_to_os_clipboard=true