Post

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

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

Install zsh

1
sudo apt install zsh

Install Oh-My-Zsh

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

1
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

1
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

1
2
3
4
plugins=(
    # other plugins...
    zsh-autosuggestions
)

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

This post is licensed under CC BY 4.0 by the author.