On September 30, 2018 in Development
Pretty iTerm2 With a Modern Titlebar 💄💅
New features in iTerm2 under Mojave allow configuring a beautiful titlebar with integrated tabs, matching theme colors, and more. It is the prettiest it has ever been.
- iTerm2
- Mojave
- macOS
- Themes
- UI
- Terminal
- DevTools
In a previous post I wrote about customizing iTerm2's titlebar to match your current theme. This provided a pretty neat visual upgrade and brought the user experience closer to that of the all hyped and very beautiful Hyper terminal emulator bei Zeit.co.
Unfortunately, an API change in macOS High Sierra stopped the titlebar customization from working. The author of iTerm2 had promised to work on changes bringing the feature back, but for a long time nothing seemed to happen. That has changed now.
A new combination of features and settings in iTerm2's nightly build allows you to configure the most beautiful terminal on macOS, yet. You will need to be on macOS Mojave to be able to do so.
Here are the steps you need to take to get to this set up.
- Upgrade to macOS Mojave, if you have not already. The upgrade went flawlessly for me and I have seen only positive reports online. To get started, open the App Store on your Mac, download the macOS Mojave installer, and follow the instructions.
- Install the iTerm2 nightly build. I usually run the nightly on my systems. It is great and rarely causes problems.
- Set the iTerm2 theme to Minimal. Go to Settings, select the Appearance tab, and choose Minimal from the Theme dropdown.
- Set your Profile's window style to Compact. In the Settings go to the Profiles tab, choose Window, and in the Settings for New Windows section select Compact from the Style dropdown.
- Open a new terminal window.
At this point, the new terminal window should look fairly similar to the above screenshot, matching your current theme. There are some additional Advanced settings of iTerm2, that you can tweak to get even closer or adjust things to your liking. Here's how I have set them.
That's it! 🎉 Enjoy an amazingly beautiful terminal experience for endless developer Zen. Looking at the issue on Gitlab, this feature is not done yet and the experience might get even better. So stay tuned! Thanks so much to George Nachman for making such a great terminal emulator.