Super User is a question and answer site for computer enthusiasts and power users. 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'm using iTerm as my default bash shell with Mountain Lion

One of the features is when you click on a file name in the shell, it opens it in a TextEditor.

At the moment though, each time I click a filename it's opened in XCode :(

How can I set this to open in TextMate instead?

I've tried setting my EDITOR shell variable to mate -w but no luck :/

share|improve this question

migrated from Oct 7 '12 at 5:40

This question came from our site for professional and enthusiast programmers.

up vote 3 down vote accepted

Guessing this is based on the default file type and if that is the case just type open ., click on the file and hit cmd-i, scroll to the bottom and select "always open this type of file with".

Or with textmate you can simply type mate filename or mate . to open the directory as a project. This does require that you open up TextMate's preferences and enable the command line option.

share|improve this answer

You must log in to answer this question.

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