Skip to content

Latest commit

 

History

History
51 lines (44 loc) · 1.24 KB

zsh_installation.md

File metadata and controls

51 lines (44 loc) · 1.24 KB

Update the packages

sudo apt update
sudo apt upgrade

Install prerequisite packages zsh

sudo apt install -y zsh

Install oh-my-zsh now Oh My Zsh is installed by running one of the following commands in your terminal.

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

autosuggestions

Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)

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

Add the plugin to the list of plugins for Oh My Zsh to load (inside ~/.zshrc):

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

Start a new terminal session.

If you want Syntax Highlighting Clone the ZSH Syntax Highlighting

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git "$HOME/.zsh-syntax-highlighting" --depth 1

Add syntax-highlighting in .zshrc Configuration

echo "source $HOME/.zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> "$HOME/.zshrc"

Change your Default Shell

chsh -s /bin/zsh

And If anything goes wrong, you can revert back to your default shell by

chsh -s /bin/bash