Hacker News new | ask | show | jobs
by the-come-ons 5208 days ago
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"