Plugins

Now is time to setup some useful plugins for iTerm.

zsh-autosuggestions

Fisharrow-up-right-like fast/unobtrusive autosuggestions for zsh.

It suggests commands as you type, based on command history. This is my favourite plugin, it will save you a lot of time spent in typing commands in our terminal.

Installing with Oh My Zsh

  1. Clone thisarrow-up-right repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)

    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
  2. Add the plugin to the list of plugins for Oh My Zsh to load (open ~/.zshrc):

    plugins=(zsh-autosuggestions)
  3. Start a new terminal session.

For other types of installation go herearrow-up-right.

Syntax highlighting

This package provides syntax highlighting for the shell zsh. It enables highlighting of commands whilst they are typed at a zsh prompt into an interactive terminal. This helps in reviewing commands before running them, particularly in catching syntax errors.

Installing with Oh My Zsh

  1. Clone this repository in oh-my-zsh's plugins directory:

  2. Activate the plugin in ~/.zshrc:

  3. Source ~/.zshrc to take changes into account:

Enable natural text selection

By default, word jumps (option + → or option + ←) and word deletions (option + backspace) do not work.

To enable these, go to "iTerm => Preferences => Profiles => Keys => Load Preset... => Natural Text Editing"

How to Customize Your Command Prompt

For further customisation of your prompt, you can follow a great guide here: https://code.tutsplus.com/tutorials/how-to-customize-your-command-prompt--net-24083arrow-up-right

List of useful plugin for development

NVM auto switch node version

Android env variables

Others: ruby rvn and NPM_TOKEN

Last updated