Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 want to config iTerm2 to be the default terminal on my mac (Mountain Lion 10.8.4), so when I do right click on the folder and choose "New Terminal Tab at Folder", it should open iTerm. Any ideas?

share|improve this question
up vote 4 down vote accepted

The New Terminal Tab at Folder service is provided by Terminal, so it can't be used with iTerm. You could make your own service for iTerm though:

on run {input, parameters}
    set p to POSIX path of item 1 of input
    tell application "iTerm"
        tell current terminal
            tell (launch session "Default Session")
                write text "cd " & quoted form of p
            end tell
        end tell
    end tell
end run

As far as I know, there is no such a thing as a default terminal on OS X. You can change the default application for .command files from Finder, and you can use duti to change the default application for x-man-page or ssh URLs.

share|improve this answer
thank you, I didn't knew I can create services like that – Ilya Cherevkov Aug 4 '13 at 10:52
Newest release of iTerm2 broke this syntax, and I'm struggling to make it work again – Ilya Cherevkov Feb 20 at 13:35

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.