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

I've been searching for a while on this one and the only answers I can dig up are "use X11" I thought I would bring it to the experts. Is there a way to configure mouse gestures/actions in the OS X Terminal app such that single-clicking on text copies the text to the clipboard?

share|improve this question
up vote 5 down vote accepted

I'm not aware of a way to do it with the built-in Terminal app, but this is a feature that some terminal replacement apps, like iTerm 2, support.

share|improve this answer
Nice drop shadow ;) – stuffe Mar 20 '12 at 15:39
It's standard OS X screenshot stuff. I know the screenshot doesn't really do anything, but the post looked a little short/bland. – Kyle Cronin Mar 20 '12 at 15:40
The screenshot really sold me on this answer – jaberg Mar 20 '12 at 15:45

Yes, but not with an unmodified left click. If you want to remap the middle or right mouse buttons to copy text, you can do this with a combination of BetterTouchTool and Automator.

The automator part:

Create a service that accepts text as input.

Single action: Do shell script. The shell script is /usr/bin/pbcopy

enter image description here

Save the action. Use System Preferences to assign an obscure keyboard shortcut to the action.

Then, in BetterTouchTool, remap the center mouse button to the keystroke that triggers your action.

That's the short version. For an expanded version with screenshots and more detailed instructions, come back later tonight, but I'm at work now and only have a Windows PC.

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.