On Tue, 24 Sep 2013 10:57:02 +1200
Jan Larres <j...@majutsushi.net> wrote:

> On 24/09/13 09:21, Sharon Kimble wrote:
> > On Mon, 23 Sep 2013 20:54:43 +0100
> > Nicholas Marriott <nicholas.marri...@gmail.com> wrote:
> >
> >> Pipe it to xclip or xsel or something.
> >
> > How? I thought it just went to xclip automatically, which then
> > transferred it to the normal clipboard?
> 
> No. Tmux copies things to its own internal paste buffers without
> touching the system clipboard. To pipe the current buffer to xclip do
> this:
> 
>   $ tmux saveb - | xclip -i -selection clipboard

Thanks for this Jan, and I've used the command you’ve given, but its
failing atm due to an old alias of xclip which is now commented out but
unable to get rid of it completely due to some unknown error
in .bashrc, so the whole thing is failing atm!

If you feel like it, the whole of the .bashrc is at
http://paste.debian.net/45437/ but I cant see why its failing at all. 

> For doing this more easily in the future add these two bindings to
> your tmux.conf:
> 
>   # Copy tmux paste buffer to CLIPBOARD
>   # Use save-buffer instead of show-buffer to avoid inserting
> spurious linebreaks bind-key C-y run-shell -b "tmux save-buffer - |
> xclip -i -selection clipboard" # Copy CLIPBOARD to tmux paste buffer
> and paste tmux paste buffer bind-key C-p run-shell "xclip -o
> -selection clipboard | tmux load-buffer -; tmux paste-buffer"
> 
> Jan

Yes, I will amend my tmux.conf once I've got this sorted out.

Thanks
Sharon.
-- 
A taste of linux = http://www.sharons.org.uk
efever = http://www.efever.blogspot.com/
efever = http://sharon04.livejournal.com/
Debian testing, Fluxbox 1.3.5, LibreOffice 4.1.1.2
Registered Linux user 561944

Attachment: signature.asc
Description: PGP signature

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users

Reply via email to