Skip to main content

Setup

Here is how to install zsh with a custom theme and some basic plugins.

Install zsh with the package manager of your choice
Install ohmyzsh with 

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

Install the powerlevel10k theme with 

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

Set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc
Restart your terminal or type 

p10k configure

Go through the configuration and customize it to your liking
In this guide we will install history-substring-search, zsh-syntax-highlighting and zsh-autocomplete

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

10. When all of them are downloaded we will need to activate them
11. To activate them we will need to type them into our `~/.zshrc`zshrc
12. This is how it should look like

```
   
plugins=(
  git
  history-substring-search
  zsh-syntax-highlighting
  zsh-autosuggestions
  )
  ```
13.

Git was preinstalled when we installed ohmyzsh
14. To use the plugins now you will need to type `source ~/.zshrc`zshrc
15. Now you have a working install of zsh with plugins and a theme 🚀