Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
3
Help us understand the problem. What is going on with this article?
@akinoriikeda

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

More than 3 years have 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 はかなり難産したよ。

3
Help us understand the problem. What is going on with this article?
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
akinoriikeda
日本各地を彷徨う、ソフトウェアエンジニアです。
mamezou
先進の工学的手法と独自のスタンス。お客様とともにビジネスを活かすITを追求します。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
3
Help us understand the problem. What is going on with this article?