Installing and using oh-my-zsh plugins
Oh-my-zsh has a large collection of plugins. These plugins generally cover the following three areas, but are not restricted to them:
- Plugins that add aliases: For example, the Ruby plugin for oh-my-zsh provides aliases such as
gin
, which expands togem install
. - Plugins that add autocompletion support for specific applications: For example, the Rust plugin adds autocompletion for the
rustc
compiler command-line parameters. - Plugins that modify how the command line works: For example, the zsh-syntax-highlighting plugin adds syntax highlighting for the command-line input (such as strings, command-line parameters, comments, and so on).
Oh-my-zsh has over 250 plugins available and documented on GitHub (https://github.com/ohmyzsh/ohmyzsh/wiki/Plugins). Plugins can greatly enhance our productivity, but be careful; installing too many plugins, or poorly written plugins, can decrease the overall performance of ZSH. In this chapter...