Comment

Comment by ackyshake

    > The problem is that pbpaste and pbcopy do not work under tmux
They do in recent macOS/tmux versions. You don't need reattach-to-user-namespace anymore.

These are my keybindings for copy/paste to clipboard:

    bind-key -T copy-mode-vi 'v' send -X begin-selection
    bind-key -T copy-mode-vi 'y' send -X copy-pipe-and-cancel pbcopy
    bind-key -T copy-mode-vi MouseDragEnd1Pane send -X copy-pipe-and-cancel pbcopy
    bind-key -T copy-mode-vi MouseDragEnd3Pane send -X copy-pipe-and-cancel pbcopy
`prefix + ]` then pastes using the clipboard contents
parent ackyshake 8 years ago

No comments yet

Be the first to share your thoughts.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton