Useful Oh-My-Zsh plugins

I’ve been using zsh as a replacement shell on both my Ubuntu laptop and my work Macbook for a while. Coupled with Robby Russell’s excellent Oh-My-Zsh https://github.com/robbyrussell/oh-my-zsh and it’s plethora of zsh plugins I now have a powerful shell with many new features.

Oh-My-Zsh describes itself as a ‘community driven framework for managing your zsh configuration’ and comes with lots of zsh plugins (189 currently) but none are enabled by default. Some zsh plugins are tailored for your specific operating system whilst others are aimed at helping improve developers workflow. Wether you’re using Ruby, Python, PHP or Javascript as your main language or you’re a systems administrator, there will be a plugin to help. The full list of zsh plugins is available at https://github.com/robbyrussell/oh-my-zsh/wiki/Plugins, Here are the zsh plugins I’m currently using:

command-not-found

Only for use with Ubuntu and openSUSE. If a command isn’t found in your $PATH it wull use the system command-not-found package to find it.

composer

If you’re a PHP developer then I’m sure you use Composer a lot. This plugin provides shortcuts to some of Composer’s commands:

git

I’m sure everyone knows git now, right? This plugin provides aliases to the most commonly used git commands:

A full list of the git plugin aliases can be found at https://github.com/robbyrussell/oh-my-zsh/wiki/Plugin:git

npm

Simply adds autocompletion to the npm command. Type npm (space) and press tab to get autocompletion for the available npm commands. Note Be prepared for a long wait when using autocompletion with npm search.

osx

The OSX plugin provides aliases and functionality for those using Apple’s OSX OS.

sudo

This is one of those plugins that becomes a must have after a short period of using it. Simply hitting ESC twice puts sudo in front of the current command, or the last one if your cli is empty. Genius!

vagrant

This plugin adds autocomplete help to the vagrant commands. For example, entering vagrant box followed by tab shows help for management of vagrant boxes.