Installing Oh My Zsh on Ubuntu

🐚 Installing Oh My Zsh on Ubuntu

Hello everyone! πŸ‘‹
Today I’ll show you how to install Oh My Zsh on the Zsh shell in Ubuntu.

Why do I use it?
Because it makes the terminal cleaner β€” especially the path display β€” and it also helps me track Git status in my repos at a glance.


βš™οΈ Installation Steps

1. Install Zsh

sudo apt-get install zsh

2. Install Git

Oh My Zsh uses Git during installation, so we need it:

sudo apt-get install git-core

3. Download and Run the Oh My Zsh Installer

wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O - | zsh

4. Set Zsh as the Default Shell

chsh -s $(which zsh)

5. Install Syntax Highlighting Plugin

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

6. Install Auto-Suggestions Plugin

git clone git://github.com/zsh-users/zsh-autosuggestions \
$ZSH_CUSTOM/plugins/zsh-autosuggestions

7. Enable Plugins in .zshrc

Edit the .zshrc configuration file:

nano ~/.zshrc

Find the plugins= line and replace it with:

plugins=(git zsh-autosuggestions zsh-syntax-highlighting)

πŸ“· Example screenshot:

Reference Screenshot


8. Apply the Changes

Reload the shell configuration:

source ~/.zshrc

πŸŽ‰ You're Done!

Now your terminal is cleaner, smarter, and Git-aware. Don’t forget to leave a comment if you found this helpful.

See you next time! πŸ‘‹