News for hackers. Stuff that matters.
Re:How to copy and paste with tmux on Mac OS X by the-come-ons on Tuesday March 20, 2012 @11:35AM (#3729745)
If you are on Linux, add this to your ~/.tmux.conf file.

  ##CLIPBOARD selection integration
  ##Requires prefix key before the command key
  #Copy tmux paste buffer to CLIPBOARD
  bind C-c run "tmux show-buffer | xclip -i -selection clipboard"
  #Copy CLIPBOARD to tmux paste buffer and paste tmux paste buffer
  bind C-v run "tmux set-buffer -- \\"$(xclip -o -selection clipboard)\\"; tmux paste-buffer"

There are no comments on this comment yet.