Zsh

Zsh

Zsh (Z Shell) is a command-line shell — the program that lets you interact with your computer by typing commands. Think of it as the engine behind your terminal.

Since macOS Catalina and higher, Zsh has been adopted replacing Bash. So there's no need to manually install zsh anymore. If you're not sure, you can run echo $SHELL on your terminal and you should get /bin/zsh as a response.


Oh My Zsh

Oh My Zsh is a framework that helps you manage and customize Zsh (your terminal shell).

Installation:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Plugins

Zsh Autosuggestions

zsh-autosuggestions is a plugin for Zsh that suggests commands as you type, based on your history.

Installation:

Search for the plugins line inside ~/.zshrc and add the plugin to the list of plugins for Oh My Zsh to load

Zsh Syntax Highlighting

Zsh Syntax Highlighting is a plugin that colors your terminal commands as you type, so you can instantly see if something is valid or wrong.

Installation:

Then again, search for the plugins line inside ~/.zshrc and add the plugin to the list of plugins for Oh My Zsh to load

Then reload your zsh configuration file by running:

circle-info

FAQ

What is a .zshrc file? Basically, it’s a Z shell resource file that contains your configuration.

How do I edit/access the .zshrc file?

Your .zshrc file is in your home directory. To open it with your default text editor:

Last updated