How to install zsh and oh-my-zsh on ubuntu?

by Juan Vásquez, 03 Jun 2022
daily, tools

Do you want to use a fancy terminal?, then install zsh and ohmyzsh.

Install zsh

sudo apt install zsh

Install Oh-My-Zsh

Then go to https://ohmyz.sh page copy and execute the following command.

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

Plugins

Install Plugin Example

I have used zsh-autosuggestions for a long time, so, I’ll show you how to add this plugin in your ~/.zshrc file

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

then open your ~/.zshrc file, find the plugins section and add zsh-autosuggestions

plugins=(
    # other plugins...
    zsh-autosuggestions
)

start a new terminal session and bom! will have autosuggestions.