Essential Oh My Zsh Plugins

Plugins are where Oh My Zsh saves you real time. This guide shows how to enable them, which bundled plugins are worth turning on first, and how to add the popular community plugins that are not bundled.

Oh My Zsh plugin configuration for Git, Docker, kubectl, directory jumps and command history

How Plugins Work

Each plugin is a folder inside ~/.oh-my-zsh/plugins/ containing a .plugin.zsh file. When Zsh starts, Oh My Zsh loads every plugin you list in your ~/.zshrc. A plugin can add aliases, shell functions, key bindings and tab completion for a specific tool.

Oh My Zsh bundles hundreds of plugins, but only git is enabled by default. That is deliberate: every plugin adds a little startup time, so you choose what you need.

How to enable plugins

Open ~/.zshrc and find the plugins line. Add plugin names separated by spaces or new lines. Do not use commas:

plugins=(git z sudo docker)

Save the file and reload:

omz reload

You can also manage plugins from the command line with the omz helper:

  • omz plugin list shows available plugins.
  • omz plugin info git shows a plugin's README.
  • omz plugin enable docker and omz plugin disable docker edit your plugins line for you.

Useful bundled plugins to enable first

PluginWhat it gives you
gitDozens of short aliases such as gst (status), gco (checkout), gl (pull) and gp (push).
zJump to frequently used directories by typing part of their name, for example z proj.
sudoPress Esc twice to add sudo to the current or previous command.
historyShort aliases for searching and listing your shell history.
extractOne extract command that unpacks most archive formats.
colored-man-pagesAdds colour to manual pages so they are easier to scan.
copypath / copyfileCopy the current path or a file's contents to the clipboard.
docker, kubectlCompletion and aliases for container and Kubernetes work.
web-searchSearch the web from the terminal with commands such as google or ddg.

Run omz plugin info <name> or alias | grep git to see exactly which aliases a plugin adds before you rely on them.

Installing popular external plugins

Two of the most requested plugins are maintained by the zsh-users community rather than Oh My Zsh itself, so they are not bundled. You install them into your custom plugins folder and then list them like any other plugin.

zsh-autosuggestions

Shows a faded suggestion from your history as you type. Press the right arrow key to accept it.

git clone https://github.com/zsh-users/zsh-autosuggestions \
  ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

zsh-syntax-highlighting

Colours commands as you type, so typos and unknown commands stand out before you press Enter.

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \
  ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

Then add both to your plugins list. The syntax highlighting project recommends loading it last:

plugins=(git z sudo zsh-autosuggestions zsh-syntax-highlighting)

The folder name must match the name in your plugins list. If they differ, Oh My Zsh prints a "plugin not found" warning on startup.

For real-time completion menus, see our Oh My Zsh autocomplete guide, which covers the separate zsh-autocomplete project.

Keep plugins fast

Every plugin runs code when a shell starts. If new terminals start to feel slow, measure startup time:

time zsh -i -c exit

Then disable plugins you rarely use and measure again. Our troubleshooting guide explains how to profile startup in more detail.

Writing your own plugin

A personal plugin is simply a folder in $ZSH_CUSTOM/plugins with a matching .plugin.zsh file:

mkdir -p $ZSH_CUSTOM/plugins/myplugin
echo 'alias ll="ls -lah"' > $ZSH_CUSTOM/plugins/myplugin/myplugin.plugin.zsh

Add myplugin to your plugins list and reload. A custom plugin with the same name as a bundled one replaces the bundled version, which is a clean way to override behaviour.

A note on third-party plugins

Plugins run with the same permissions as your shell. Prefer well-known projects, read the README, and avoid copying install commands from sources you do not trust. Our homepage covers more safety tips for downloading Oh My Zsh.

Choose plugins according to real workflows

An effective plugin configuration begins with a clear inventory of the commands you use most often. Developers who work in Git throughout the day benefit from aliases and completion for common repository operations, while engineers who frequently enter containers or connect to servers may prioritise Docker, Kubernetes or SSH-related helpers. A plugin is worthwhile only when it removes repeated work or reduces the likelihood of a mistake. Start with two or three useful additions, observe their behaviour for several days and expand deliberately. Enabling every available plugin makes troubleshooting harder and rarely improves productivity.

Look closely at overlaps between tools. Several plugins can redefine similar widgets, bind the same shortcut or change completion behaviour. If an expected key combination stops working after an installation, test the new plugin on its own before changing unrelated settings. Keep the plugins array readable, grouped by purpose if the list becomes long. Comment why a less familiar plugin is enabled and whether it depends on an external command. That annotation is especially valuable when you move your shell configuration to a fresh laptop months later.

A repeatable plugin-testing routine

To check a new plugin safely, begin by backing up ~/.zshrc and confirming that the plugin directory exists in the expected custom or bundled location. Add only the single plugin under evaluation, then open a fresh Zsh session. Verify that completion, aliases and key bindings work using commands you understand. Record the time required to start a clean interactive shell before and after enabling the plugin. If the difference is substantial, inspect the plugin initialization files and consider whether you need its features in every shell or only for a particular project.

For external plugins, review repository maintenance, installation instructions and the shell code that will execute during startup. A terminal plugin runs with the permissions of your account and deserves the same care as any development dependency. Prefer an established maintenance history over impressive feature counts. Pinning a known-good version can make a shared team configuration more predictable, but it also creates responsibility for reviewing security and compatibility updates. Keep a short recovery note explaining how to launch Zsh without loading your usual configuration if a plugin causes startup failures.

Performance and long-term maintainability

Plugin performance is cumulative. A small initialization delay may be difficult to notice in one session but becomes frustrating when you open many tabs during the day. Measure shell startup under representative conditions and distinguish framework overhead from network calls, external executables and expensive completion scans. Avoid placing commands that contact remote services in unconditional startup paths. When your configuration grows, break it into clearly named, purposeful sections and retain a minimal baseline that works without optional plugins. The best arrangement is one you can understand, audit and restore without relying on trial and error.

Conclusion

Oh My Zsh plugins are most valuable when selected with purpose. Enable features that remove repeated effort, verify their interaction with existing key bindings and keep initialization costs visible. A short, well-understood plugin list is easier to audit, troubleshoot and reproduce than a large collection installed out of curiosity. With sensible backups, measured performance and careful review of external code, your shell can grow more capable while remaining predictable and comfortable to maintain.