mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 09:44:18 +00:00 
			
		
		
		
	Section on clipboard, from Thomas Adam.
This commit is contained in:
		
							
								
								
									
										24
									
								
								FAQ
									
									
									
									
									
								
							
							
						
						
									
										24
									
								
								FAQ
									
									
									
									
									
								
							@@ -397,4 +397,28 @@ Or the default window options:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
        $ tmux -Lfoo -f/dev/null start\; show -gw
 | 
					        $ tmux -Lfoo -f/dev/null start\; show -gw
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					* How do I copy a selection from tmux to the system's clipboard?
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					When running in xterm(1), tmux can automatically send copied text to the
 | 
				
			||||||
 | 
					clipboard. This is controlled by the set-clipboard option and also needs this
 | 
				
			||||||
 | 
					X resource to be set:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						XTerm*disallowedWindowOps: 20,21,SetXprop
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					For rxvt-unicode (urxvt), there is an unofficial Perl extension here:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        http://anti.teamidiot.de/static/nei/*/Code/urxvt/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Otherwise a key binding for copy mode using xclip (or xsel) works:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						bind -temacs-copy C-y copy-pipe "xclip -i >/dev/null"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Or for inside and outside copy mode with the prefix key:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        bind C-y run -b "tmux save-buffer - | xclip -i"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					On OS X, reattach-to-usernamespace lets pbcopy/pbpaste work:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard
 | 
				
			||||||
 | 
					 
 | 
				
			||||||
$Id$
 | 
					$Id$
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user