.tmux.confをmacとlinuxで共有していて、「linuxではコピー&ペーストをクリップボードと連携できたのにmacではできない!」という悩みを解決した話です。 元の.tmux.confはこちら。 1 # sync clipboard 2 bind-key -t emacs-copy C-w copy-pipe "xclip -i -selection clipboard" 3 bind-key ] run "tmux set-buffer -- \"$(xclip -o -selection clipboard)\"; tmux paste-buffer" 上の行で、コピーモードでCtrl + wすると選択領域がカットできて、それをxclipというコマンドでクリップボードに流し込んでます。 下の行はその逆で、Ctrl + x (bind-key) の後 ] を続けて打つと、現在