Setting up ZSH and Oh-my-ZHS with autocomplete plugins

setting-up-zsh-and-oh-my-zhs-with-autocomplete-plugins

In this post I’ll provide you with step-by-step tutorial on how to set up oh-my-zsh in your terminal with in my opinion, essential plugins.
First things first:
If you run Linux you can use your packet manager to install all neccesarry packages and jump straight to configuration section.
Instead of apt install use your packet manager commands.

Linux install using packet manager

sudo apt install zsh-autosuggestions zsh-syntax-highlighting zsh zsh-autocomplete

Terminal install using Git and sh

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

    git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions

    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

    git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting

    git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/plugins/zsh-autocomplete

Configuration

  • Enable plugins by adding them to .zshrc.

    • Open .zshrc
    • nano ~/.zshrc
    • Find the line which says plugins=(git).
    • Replace that line with
 plugins=(
  git
  zsh-autosuggestions
  zsh-syntax-highlighting
  fast-syntax-highlighting
  zsh-autocomplete
 )
  • Reload your environment to make changes work!

    • source ~/.zshrc

Optional

  • Enable cutom theme
    • nano ~/.zshrc
    • Find the ZSH_THEME="robbyrussell"
    • Replace with ZSH_THEME="alanpeabody"

You can find my fork of the file on Github Gists

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
improve-your-google-ranking-with-search-intent-&-optimization

Improve Your Google Ranking with Search Intent & Optimization

Next Post
top-10-api-testing-tools-in-software-testing-industry

Top 10 API Testing Tools in Software Testing Industry

Related Posts