Skip to content

Instantly share code, notes, and snippets.

@sainu
Last active April 21, 2023 11:58
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sainu/3acd0454a16e464e96cc5a144acbabc2 to your computer and use it in GitHub Desktop.
Save sainu/3acd0454a16e464e96cc5a144acbabc2 to your computer and use it in GitHub Desktop.
tmuxを2.6にアップグレードした時に bind-key と vi-copy 周りが動作しなくなったので.tmux.confの内容を変更した時の差分
-bind-key -t vi-copy v begin-selection
-bind-key -t vi-copy y copy-pipe "reattach-to-user-namespace pbcopy"
-unbind -t vi-copy Enter
-bind-key -t vi-copy Enter copy-pipe "reattach-to-user-namespace pbcopy"
+bind-key -T copy-mode-vi v send-keys -X begin-selection
+bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"
+bind-key -T copy-mode-vi Enter send-keys -X copy-pipe-and-cancel "reattach-to-user-namespace pbcopy"

tmuxを2.6にアップグレードした時に bind-keyvi-copy 周りが動作しなくなったので.tmux.confの内容を変更した時の差分

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment