iTerm2
Last updated
Last updated
is an open source replacement for Apple's Terminal. It's highly customizable and comes with a lot of useful features.
You can get the app from . Once downloaded, drag and drop the iTermapplication file into your Applications folder.
We are going to setup
The final setup will be like this:
For correct work you will first need:
The Z shell (also known as zsh
) is a Unix shell that is built on top of bash
(the default shell for macOS) with additional features. It's recommended to use zsh
over bash
. It's also highly recommended to install a framework with zsh
as it makes dealing with configuration, plugins and themes a lot nicer.
We've also included an env.sh
file where we store our aliases, exports, path changes etc. We put this in a separate file to not pollute our main configuration file too much. This file is found in the bottom of this page.
Install zsh
using Homebrew:
The configuration file for zsh
is called .zshrc
and lives in your home folder (~/.zshrc
).
Install Oh My Zsh
:
The installation script should set zsh
to your default shell, but if it doesn't you can do it manually:
To apply the changes you make you need to either start new shell instance or run:
Add plugins to your shell by adding the name of the plugin to the plugin
array in your .zshrc
.
To use spaceship
we need to setup Powerline Fonts
. To do it open a new terminal and exec the following commands:
In Preferences > Profiles > Text and select the fonts:
In the terminal run:
Now open ~/.zshrc and replace ZSH_THEME="robbyrussell" with ZSH_THEME="spaceship"
Restart iTerm2 and at this point you should have a result like this:
(v5.0.6 or recent) must be installed.
must be installed and used in your terminal.
Now you should install a framework, we'll use .
is an open source, community-driven framework for managing your zsh
configuration. It comes with a bunch of features out of the box and improves your terminal experience.
The out-of-the-box configuration is usable but you probably want to customise it to suit your needs. The contains a lot of useful information if you want to deep dive into what you can do with Oh My Zsh, but we'll cover the basics here.
You'll find a list of all plugins on the . Note that adding plugins can cause your shell startup time to increase.
You can find the official spaceshipt-prompt documentation on Gitbook here: