DEV Community

Cover image for 24 Zsh Plugins🔌 Every Developer & DevOps Engineer 🖥 Should Use in 2025
Chandrashekhar Mehta
Chandrashekhar Mehta

Posted on

24 Zsh Plugins🔌 Every Developer & DevOps Engineer 🖥 Should Use in 2025

If you're using Zsh with Oh My Zsh, you're already ahead of the game. But are you leveraging the full power of its plugin ecosystem? Let me show you how to transform your terminal into a productivity powerhouse.

Prerequisites

Before we dive in, make sure you have:

  • Zsh installed: Check with zsh --version (version 5.0 or higher recommended)
  • Oh My Zsh installed: If not, install it with:
  sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Enter fullscreen mode Exit fullscreen mode
  • Git installed: Required to clone the custom plugins
  • Basic terminal knowledge: You should know how to edit files with nano, vim, or your preferred editor

To verify your setup:

# Check Zsh version
zsh --version

# Check if Oh My Zsh is installed
ls ~/.oh-my-zsh

# Check Git
git --version
Enter fullscreen mode Exit fullscreen mode

Why Plugins Matter

The default Zsh installation with Oh My Zsh comes with just the git plugin enabled. While that's a good start, you're missing out on intelligent auto-completions, helpful aliases, and productivity shortcuts that can save you hours every week.

The Setup

First, let's install two community plugins that are absolute game-changers:

1. zsh-autosuggestions (Fish-like suggestions)

git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/custom/plugins/zsh-autosuggestions
Enter fullscreen mode Exit fullscreen mode

2. zsh-syntax-highlighting (Real-time command validation)

git clone https://github.com/zsh-users/zsh-syntax-highlighting ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
Enter fullscreen mode Exit fullscreen mode

The Power Plugin List

Now, let's add the essential plugins. Open your ~/.zshrc file and replace the plugins=() section with this configuration:

plugins=(
  # Version Control
  git

  # Cloud & Infrastructure
  docker
  docker-compose
  kubectl
  helm
  terraform
  aws
  gcloud
  azure
  ansible

  # Programming Languages & Tools
  python
  pip
  node
  npm
  yarn
  golang
  rust

  # Productivity Boosters
  sudo              # Press ESC twice to add sudo to previous command
  extract           # Universal archive extractor (works with .tar, .zip, .gz, etc.)
  z                 # Jump to frequently used directories
  history           # Enhanced history commands
  command-not-found # Suggests package to install for missing commands
  vscode            # VS Code aliases and shortcuts

  # Community Plugins (must be last)
  zsh-autosuggestions
  zsh-syntax-highlighting
)
Enter fullscreen mode Exit fullscreen mode

What Each Plugin Does

Cloud & Infrastructure Plugins

  • docker & docker-compose: Auto-completion for containers, images, and compose commands
  • kubectl: Kubernetes command completion and helpful aliases (k for kubectl, kgp for kubectl get pods)
  • helm: Helm chart management completions
  • terraform: Terraform command completion
  • aws/gcloud/azure: Cloud provider CLI completions

Language Plugins

  • python/pip: Python environment and package management shortcuts
  • node/npm/yarn: JavaScript ecosystem completions
  • golang/rust: Language-specific tooling support

Productivity Plugins

  • sudo: Double-tap ESC to prefix your last command with sudo (no more retyping!)
  • extract: Use extract <file> for any archive format - no need to remember tar flags
  • z: After using it for a while, just type z project to jump to /home/user/dev/project
  • command-not-found: Ubuntu/Debian feature that suggests which package to install

Community Plugins

  • zsh-autosuggestions: As you type, see suggestions based on your history (press → to accept)
  • zsh-syntax-highlighting: Commands turn green if valid, red if invalid - catch typos before running

Activate Your Configuration

After updating your .zshrc, reload it:

source ~/.zshrc
Enter fullscreen mode Exit fullscreen mode

Real-World Examples

Before:

$ kubctl get pods  # Typo turns red immediately
$ # Realize mistake, fix it
$ kubectl get pods
Enter fullscreen mode Exit fullscreen mode

After with plugins:

  • The typo is highlighted in red instantly
  • Start typing kub... and autosuggestions show kubectl get pods from history
  • Press → to accept
  • Or use the k alias: k get pods

Directory Navigation:

# Old way
$ cd ~/projects/work/important-service/

# With 'z' plugin (after visiting once)
$ z important
# Instantly jumps to ~/projects/work/important-service/
Enter fullscreen mode Exit fullscreen mode

Archive Extraction:

# Old way
$ tar -xzvf file.tar.gz
$ unzip archive.zip
$ tar -xjf file.tar.bz2

# New way with 'extract' plugin
$ extract file.tar.gz
$ extract archive.zip
$ extract file.tar.bz2
# All work the same way!
Enter fullscreen mode Exit fullscreen mode

Performance Considerations

Having many plugins can slow down shell startup. If you notice lag:

  1. Only enable plugins for tools you actually use
  2. Remove language plugins for languages you don't work with
  3. Use time zsh -i -c exit to measure startup time

Bonus: Useful Aliases from These Plugins

Once activated, you get dozens of useful aliases:

Docker:

  • dps = docker ps
  • dpa = docker ps -a
  • dce = docker-compose exec

Kubectl:

  • k = kubectl
  • kgp = kubectl get pods
  • kgd = kubectl get deployments
  • kaf = kubectl apply -f

Git:

  • gst = git status
  • gc = git commit
  • gp = git push
  • gco = git checkout

Type alias in your terminal to see all available aliases!

Next Steps

  1. Explore themes: Try agnoster or powerlevel10k for a beautiful prompt
  2. Custom aliases: Add your own in ~/.zshrc or ~/.oh-my-zsh/custom/aliases.zsh
  3. Discover more plugins: Run ls ~/.oh-my-zsh/plugins/ to see 350+ available plugins

Conclusion

A well-configured terminal is a developer's best friend. These plugins transform Zsh from a simple shell into an intelligent assistant that autocompletes, suggests, and validates as you type.

The initial setup takes 5 minutes, but you'll save hours every week through improved efficiency and reduced context-switching.

What plugins do you use? Drop your favorites in the comments!


Found this helpful? Follow me for more developer productivity tips and DevOps tutorials!

Top comments (0)