X で tmux からクリップボードへ


xsel が必要。

次の設定を .tmux.conf に書く。

bind C-c run "tmux save-buffer - | xsel -ib; tmux display-message 'Copied'"