How to Install Zsh/ zsh-autosuggestions/ oh-my-zsh in Linux

--

Step1: Open a Linux terminal and run the following command

sudo yum install zsh wget git -ychsh -s /bin/zsh rootNote: (bash: chsh: command not found) Rn the below commandsudo yum install util-linux-user -yecho $SHELLwget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zshcp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
source ~/.zshrc
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

Step2: Open your editor and add these lines in .zshrc file at ~/.zshrc

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

Step3: Run the following command:

source ~/.zshrc

--

--

Varun Kumar Manik

AWS APN Ambassador | SME of DevOps DevSecOps | Cloud Architect & Trainer | Blogger | Youtuber |Chef