2
3

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 5 years have passed since last update.

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

Posted at

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 はかなり難産したよ。

2
3
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
2
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?