ZSH

Supercharge ZSH console with plugins

Posted by ChenRiang on November 27, 2020

ZSH enable you to use plugin and it will supercharge your productivity and terminal experience by 10X.

In this article, we will be adding another 2 plugin for our ZSH:

  • Auto Suggestion
  • Syntax Highlighting

Auto Suggestion

  1. Clone the plugin repo to a directory(~/.zsh/zsh-autosuggestions).
    1
    
     git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.zsh/zsh-autosuggestions
    
  2. Autostart the plugin when the terminal is launching.
    1
    
     echo 'source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh' >> ~/.zshrc
    
  3. Reload the terminal with new changes.
    1
    
     source ~/.zshrc
    

Syntax Highlighting

  1. Clone the plugin repo to a directory(~/.zsh/zsh-autosuggestions).
    1
    
     git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.zsh/zsh-syntax-highlighting
    
  2. Autostart the plugin when the terminal is launching.
    1
    
     echo 'source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh' >> ~/.zshrc
    
  3. Reload the terminal with new changes.
    1
    
     source ~/.zshrc