Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

As a long time Putty user, I love how upon selecting a text it gets copied into the buffer and upon right clicking it gets pasted back in.

Is there a way to configure Terminal to behave the same way?

share|improve this question
I like that feature, too - but ⌘-C ⌘-V is pretty quick :) – warren Jan 14 '15 at 15:37
up vote 9 down vote accepted

Terminal is limited in its configurability but iTerm2 is a Terminal replacement that does what you ask and more. Including bookmarks for ssh sessions not unlike puTTY.

share|improve this answer
Looks interesting. How to you set cut and paste up as i described though? I don't see this under Preferences – Jam May 15 '11 at 0:18
Preferences windows -> General tab. Make sure Copy to clipboard on selection is checked under the Mouse section. – Ian C. May 15 '11 at 0:31
iTerm is the best. +1 – ConstantineK May 15 '11 at 0:50
@Ian That will copy to the clipboard when text is hilighted, but won't paste on a right click. It brings up the context menu. It doesn't look like there is an option to do this, but it seems useful. – KeithB May 15 '11 at 14:04
@KeithB: What's a "right click"? :) But seriously, there's an option to make the middle button paste from clipboard. It's just down from the copy-on-select option. – Ian C. May 15 '11 at 19:16

If you have a three-button mouse (e.g., the Apple Mighty Mouse scroll ball can act as a third button), Terminal will paste the current selection if you Middle-Click (just like X11 and xterm). It is the same as invoking the Edit > Paste Selection command, which has the keyboard shortcut Shift-Command-V.

As of OS X 10.8, selecting text in a terminal copies the text to a pasteboard and Paste Selection pastes the contents of this pasteboard (akin to X11’s PRIMARY). It now behaves very much like xterm under X11. As a result, Paste Selection and Middle-Click are now available when there is no selection, pasting the same text until something else is selected, and the text persists when quitting/reopening Terminal. The pasteboard has the identifier and is available to other programs.

Also, you can drag-and-drop selected text to Paste it. You can of course drag to other terminal windows (or other applications), but you can also just drag a few pixels and then release to Paste into the current terminal.

share|improve this answer

NO need to download anything. In Terminal do

  1. select text to copy
  2. to paste, click the middle button of the mouse

I just tried in Yosemite.

share|improve this answer
Whatttt how did I just discover this?! Works on mtn lion too – Siddhartha Mar 4 '15 at 22:30

Simply install which includes both these options in the preferences.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.