Oh My Zsh Installation
Oh-my-zsh InstallationΒΆ
Dependencies 1. curl 2. git
Step 0: Install zsh shell For this plugin to work, we need zsh shell to be installed in the system. Use the following command,
sudo apt install zsh
Step 1: Install Oh-My-Zsh using Curl :
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Step 2: Install zsh-autosuggestions by running:
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
Step 3: Install zsh-syntax-highlighting by running:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
Step 4: Use your preferred text editor. Here Vim is used
vim .zshrc
.zshrc
file and replace the line with the following,
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
Change zsh Theme
By default the robbyrussel
is installed. It can be changed to any other theme by replacing the robbyrussel
to agnoster
ZSH_THEME="agnoster"
Make zsh default shell
Use the following command in Terminal to make zsh
your default shell.
chsh -s $(which zsh)