On Tue, May 10, 2011 at 09:34:13AM -0700, Micah Cowan wrote:
> On 05/10/2011 09:12 AM, Pierre Habouzit wrote:
> >use-case:  save-buffer "|xclip"
> 
> tmux already does this; see the "show-buffer" command. E.g.,
> 
>   tmux show-buffer | xclip

Oh right, I got confused by https://wiki.archlinux.org/index.php/Tmux
which does:

  bind-key C-y save-buffer /tmp/tmux-buffer \; run-shell "cat /tmp/tmux-buffer 
| xclip"

Now I use:
  bind-key - run-shell     "tmux show-buffer | xclip"
  bind-key = choose-buffer "run-shell 'tmux show-buffer -b %% | xclip'"

Thanks for the tip!
-- 
·O·  Pierre Habouzit
··O                                                madco...@debian.org
OOO                                                http://www.madism.org

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to