Now is time to setup some useful plugins for iTerm.
zsh-autosuggestions
Fish-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
Clone this repository into $ZSH_CUSTOM/plugins (by default ~/.oh-my-zsh/custom/plugins)
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
Clone this repository in oh-my-zsh's plugins directory:
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/# Example format: plugins=(rails git textmate ruby lighthouse)# Add wisely, as too many plugins slow down shell startup.plugins=(gitgit-flowcolored-man-pagescolorizegithubjiranodenvmnvm-autovagrantvirtualenvpippythonbrewosxzsh-autosuggestionszsh-nvmzsh-syntax-highlighting)
NVM auto switch node version
export NVM_DIR="/Users/tony/.nvm"[ -s"$NVM_DIR/nvm.sh" ] &&."$NVM_DIR/nvm.sh"# This loads nvmnvm_auto_switchexport PATH="/usr/local/opt/imagemagick@6/bin:$PATH"
ifwhichrbenv>/dev/null; theneval"$(rbenvinit-)"; fiexport PATH="/usr/local/opt/mariadb@10.2/bin:$PATH"# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.export PATH="$PATH:$HOME/.rvm/bin"export NPM_TOKEN="YOUR NPM TOKEN"