Enhancing Your MacOS Terminal Experience
Last updated
Last updated
Elevate your terminal experience on MacOS by following this quick tutorial on installing iTerm2 and applying a custom color scheme. This will not only improve the aesthetics of your terminal but also potentially make it easier to read and work with.
is a package manager for MacOS that simplifies the process of installing software on MacOS. Run the following command in your terminal to install Homebrew:
With Homebrew installed, you can easily install by running:
Choose your desired iTerm2 color scheme from .
Download the theme file and save it using the following extension: .itermcolors
.
Open iTerm2.
Go to iTerm > Preferences > Profiles > Colors tab.
Click on Color Presets... at the bottom right > Import...
Select your downloaded .itermcolors
file.
Once imported, select it from the list of Color Presets.
using the following command:
Syntax Highlighting:
Auto-Suggestions:
After cloning, add zsh-syntax-highlighting
and zsh-autosuggestions
to the plugins
section in ~/.zshrc
.
Clone the Powerlevel10k repository:
Update the ZSH_THEME
line in your ~/.zshrc
file to use Powerlevel10k:
Apply the changes by sourcing ~/.zshrc
:
ls
Command with colorls
Ruby gemInstall colorls
:
To avoid typing colorls
every time, we'll create an alias in the .zshrc
file. This will allow us to use ls
as a substitute command. Open ~/.zshrc
and add:
Apply Changes: For the alias to take effect, source your .zshrc
file by running:
Et voilΓ !
Reference:
To fully enjoy Powerlevel10k, you'll need a Nerd Font. Choose and download your preferred Nerd Font from . Install the font on your system then set it from iTerm2 preferences.