0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

TMUXでクリップボードを有効にする方法

0
Last updated at Posted at 2024-08-14

はじめに

まず、reattach-to-user-namespaceプラグインをインストールする必要があります。
homebrewで簡単にインストールできます。

zsh

brew install reattach-to-user-namespace

次に、設定ファイル~/.tmux.confを作成する必要がある。ここで、コピーしたテキスト・バッファをpbcopyにで共有するように設定を追加します。
設定ファイルは以下の通りです。

tmux.conf

bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'
bind-key -T copy-mode-vi Enter send -X copy-pipe-and-cancel 'reattach-to-user-namespace pbcopy'

コピーの方法

tmuxを実行してから、コピーモードに入ります。
コピーしたい箇所を選択し、”y”キーでコピーが完了します。

貼り付けは、 ”command + v”で貼り付けできます。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?