macosshellterminaliterm2

How can I use iterm as default terminal on macOS?


I want to make iTerm2 as my default terminal on macOS,

I open iTerm2 and hit to make iTerm default Term

But it's not working!

And I go to default terminal preferences

TE

But after open it I see this err


Solution

  • It sounds like you need to rebuild your macOS' LaunchServices.

    To do this, download OnyX and choose the version based on your current macOS version.

    The option that you need is in the red box, and I'd suggest that you UNCHECK anything that you don't need or don't know; otherwise, you might end up with deleting data that you might need:

    Onyx Illistration

    After that, you can try again with the built-in Make iTerm2 Default Term option in iTerm2 (if this option is greyed out for you, click option + the iTerm menu button to re-enable it again).

    There are ways to do this through the command line without downloading third-party apps, but I trust OnyX enough to hand it the job.

    However, if you decide to do it from the command line, make sure you type the command that corresponds to your current macOS version. More on that here.

    Hope this helps :)