Zsh - fairulazmin/note GitHub Wiki

Install Zsh

sudo apt-get install zsh

Install Oh My Zsh

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

Install Powerlevel10k

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

Install Powerline fonts

sudo apt-get install fonts-powerline

or

# clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts

Then, change the font type in terminal

Open zshrc file by typing vim ~/.zshrc and edit command as below

ZSH_THEME="powerlevel10k/powerlevel10k"

Restart terminal and configure Powerlevel10k configuration wizard

Set Screen Background Color to RGB(40,44,52)

Install zsh auto suggestion

Clone this repository

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

plugins=(git zsh-autosuggestions)