Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'd tried using iTerm2 beta Build 1.0.0.20120724 and using bind C-y run-shell "reattach-to-user-namespace -l zsh -c 'tmux show-buffer | pbcopy'" in .tmux.conf but none works.

The solutions I found aren't specific about the system and conditions. Hence I hope the problem statement here is clear ie. Copying text from remote to OS X clipboard via iTerm2 with Tmux.

Problem:

  1. Copy text output from cat of a log file that's longer than a screen.

  2. Copy text from vertically* split screen (left and right panes) without copying the text from the other pane.
    *not sure if it should be called vertically or horizontally split.

  3. Copy text through Vim that's longer than a screen.

I'm aware of holding alt while clicking and drag to select the text. But the problem arises when you need to scroll, or are working in more than 1 pane.

share|improve this question
When you say "remote", do you mean you are running tmux on the remote side of an ssh connection? – chepner Feb 13 at 15:25
@chepner yes, you're right. – resting Feb 14 at 16:28

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.