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

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


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



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

Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.