Level up your Terminal with iTerm2 and Oh My Zsh

Having a terminal with the right tools can increase productivity exponentially which is what we are all about!

1. iTerms2

Coming from a simple Mac terminal, iTerms2 offers a lot more customizations and tools which makes it easier and quicker to use.

2. ZSH

The Z shell (Zsh) is a Unix shell that can be used as an interactive login shell and as a command interpreter for shell scripting.

brew install zsh
brew help

3. Oh My Zsh

Oh My Zsh is a Zsh framework that has many great plugins. It also contains a lot of themes for your terminal. It will be useful to install the next tools.

4. Spaceship-prompt

Now comes the fun bit where you can add a nice theme and cool visuals on your repository. Here is the list of some of the many things it includes:

  • Prompt character turns red if the last command exits with non-zero code.
  • Current Git branch and rich repo status
  • Package version, if there’s is a package in the current directory
  • etc…

5. Autosuggestion

This is by far my favorite ZSH plugin. It shows in light grey an autocompletion suggestion as you type a command.

As I type “npm”, “npm start” is suggested. By hitting tab, it autocompletes the command

6. The fuck

I didn’t mean to be rude, The fuck is actually the name of an add-on for your terminal which suggests corrections of the previous command you entered. Below I mistyped git status so instead of retyping it, I can type fuck and it will suggest the command it thinks I wanted to type, git status.

7. Startup directory

If like me you save all your repositories inside a folder, you can set ITerm to open from this directory on startup under Preferences > Profiles > Working Directory. A small change that will save so many repetitive keystrokes.

Wrapping up

I hope you found this article useful, please share your terminal tips in the comments! :)

JavaScript Mid-Level Developer, I write blogs to learn and share what I learn.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store