I want to be able to add an action to search Google with any selected text in Terminal. Any ideas?

  • Do you want the Google search to be via curl in Terminal, or in a browser app? – Daniel Nov 9 '11 at 4:35

You could use the one that's built into iTerm2 … (which is a viable replacement for Terminal anyway, if you don't know it yet)

enter image description here

| improve this answer | |

You can enable the corresponding service in Preferences/Keyboard.

Default key assignment is Shift-Command-L which I had to change because it was already used by something else.

After enabling the service you can initiate a Google search in Terminal by selecting a text and

  • press the shortcut key
  • select the service in the context menu (Services/Search with Google)

Only drawback is that the search always opens Safari even if you have different default browser.

| improve this answer | |
  • This doesn't seem to work with highlighted text in terminal – ennuikiller Oct 22 '11 at 17:28
  • It definitively does for me: highlight/select text, right click, Services. – nohillside Oct 22 '11 at 19:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .