Installing Zsh
Before we can get started with any configuration we need to install zsh.
As there are several ways to install depending on the operating system you are on read this guide.
If zsh correctly installed you should be able to run:
Installing Oh My Zsh
To install Oh My Zsh you need to run the command below (you must have curl
installed):
From now on all the settings you want to do like adding environment variables or configuring your terminal
in any way use the ~/.zshrc
file and no longer the ~/.bash_profile
.
Spaceship
Now let's install the Spaceship theme that will slightly modify the information that is displayed in the terminal, with it we can show the version of the current Node, NPM, etc.
Let's start by cloning the Spaceship repository into our Oh My Zsh themes folder:
Now let's create a symbolic link to the Spaceship theme file in the Oh My Zsh themes folder:
Now inside the ~/.zshrc
file, let's change the ZSH_THEME
variable to look like this:
Configuring Spaceship
As much as it is very interesting to show the versions of Node, Docker and other items in our terminal, this usually consumes processing and can slow down the loading of folders, so I like to disable most of these options.
At the end of the ~/.zshrc
file I add the following content: