Help us understand the problem. What is going on with this article?

tmux upgrade して 2.6 にしたら死にそうになった

More than 1 year has passed since last update.

pbcopy と bind-key が動かなくて泣いた。

before:

if "which pbcopy" "bind-key -t vi-copy y     copy-pipe 'pbcopy'"
if "which pbcopy" "bind-key -t vi-copy Enter copy-pipe 'pbcopy'"

bind-key -t emacs-copy C-w copy-pipe 'pbcopy'
bind-key -t emacs-copy C-u page-up
bind-key -t emacs-copy C-d page-down

もう、全く動かない。技術者として死活問題。

after:

$ brew install reattach-to-user-namespace

して、

set -g default-command "reattach-to-user-namespace -l ${SHELL}"
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"

bind-key -T copy-mode C-w send -X copy-pipe-and-cancel 'pbcopy'
bind-key -T copy-mode C-u send -X page-up
bind-key -T copy-mode C-d send -X page-down

で何とかなった。-Tsend -X はかなり難産したよ。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away