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`.
5. Restart your shell or type `p10k configure`
6. Go through the configuration and customize it to your liking
7. Now is a good time to see what plugins you would like
8. In this guide we will install `history-substring-search`<span style="font-family: monospace;"> , `zsh-syntax-highlighting` and `zsh-autosuggestions`  
    </span>
9. <span style="font-family: monospace;"><span style="font-family: monospace;">To install the plugins we will need to type these commands</span></span>```bash
     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`
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`
15. Now you have a working install of zsh with plugins and a theme 🚀