How do I set iTerm as the default terminal in OS X?

9,523

Solution 1

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"
        reopen
        tell current terminal
            tell (launch session "Default Session")
                write text "cd " & quoted form of p
            end tell
        end tell
        activate
    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.

Solution 2

iTerm version 3 (or maybe earlier) has an option to set a specific Profile to handle certain protocols, SSH and Telnet being the most appropriate for me.

Setting a profile to handle a URL protocol in iTerm version 3

Share:
9,523

Related videos on Youtube

Ilya Cherevkov
Author by

Ilya Cherevkov

I like engineering simple stuff that just works.

Updated on September 18, 2022

Comments

  • Ilya Cherevkov
    Ilya Cherevkov over 1 year

    I want to configure iTerm2 to be the default terminal on my Mac (Mountain Lion 10.8.4), so that when I right-click on a folder and choose "New Terminal Tab at Folder", it should open iTerm.

    How can I do this?

  • Ilya Cherevkov
    Ilya Cherevkov almost 11 years
    thank you, I didn't knew I can create services like that
  • Ilya Cherevkov
    Ilya Cherevkov about 8 years
    Newest release of iTerm2 broke this syntax, and I'm struggling to make it work again