Customizing your terminal (Mac)

Table of contents

Intro

For so many times, I was using my default terminal without changing anything, not even the default theme and background you can have in settings. Then I started wanting to have a very nice one but found everything so difficult that I gave up. Finally one day I decided that I would do it and will manage to end up with a terminal that I like and enjoy.

I‘ll guide you through every few steps I took using only 2 tools so you can also find themes, colors, fonts or whatever that you like.

Tools

  1. Fig

    (Be aware that Fig has just joined Amazon, and during the certain amount of time, they don’t accept new users to register. Follow the updates directly on their website)

    First of all, let's talk about Fig, which I use for the autocomplete feature in the terminal. Fig has so many other features, but I'll keep it simple for this article, and only focus on the autocomplete default feature that you can also customize. Download it and follow the instructions.

  2. Powerlevel10K

    The second and last tool is Powerlevel10k. This tool lets you give a personalized look to your terminal. Install it following the instructions and you will be prompted to choose between so many possibilities.

    Then, it will create a .p10k.zsh file where you'll be able to customize even more, with text color, background color...

    A very useful tip is to type directly in your terminal:

     for i in {0..255}; do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}; done
    

    This command will open a color palette with all the needed color codes to replace the default ones.

Conclusion

I know it's a short article but it's a simple and useful one. Spending a little bit of time with it and you will get a fantastic terminal like the screenshot below with autocomplete (all that you need). Happy coding!!

2
Subscribe to my newsletter

Read articles from Christophe Anfry directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Christophe Anfry
Christophe Anfry

Want to change my life and be a developer for my 40. Crazy project and also difficult but my passion for coding is too big. It's a dream and I want to reach this goal for my personal satisfaction and also for my family (wife and 3 kids).