taiki-t's diary

React Native, Rails そして雑多な記録: The world is waiting for you to give it a meaning.

tmux で pbcopy(クリップボードへのコピー)を使えるようにする

Homebrew 使ってる前提で書くよ

brew install reattach-to-user-namespace

.tmux.confに下記を追記

set-option -g default-command "reattach-to-user-namespace -l zsh"

tmuxを再起動すればok

例:

git のローカルにあるbranch一覧をクリップボードにコピー

git branch | pbcopy

便利。

詳しくは

github.com