Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 442
Oliver D Avatar asked Feb 13 '20 14:02

Oliver D


3 Answers

(Open iTerm Build version 3.3.7)

Menu: iTerm2 > Make iTerm2 Default Term

enter image description here

like image 81
superup Avatar answered Oct 31 '22 18:10

superup


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 :)

like image 22
fayezk13 Avatar answered Oct 31 '22 17:10

fayezk13


Use this location instead:

/Applications/iTerm.app/Contents/MacOS/iTerm2

but note that it will not solve your issue completely. Termianal will start anyway, but this time, it will run iTerm2 - as you instructed it to do.

like image 33
Oo.oO Avatar answered Oct 31 '22 18:10

Oo.oO