Easing Glide Usage in Zsh

When it comes to package management in Go I use Glide. It handles my workspace ($GOPATH) and the proper versions of any packages I need. My shell of choice is Zsh, primarily because of oh-my-zsh. To make it easier to work with Glide in Zsh Matt Butcher created the Zsh plugin glide-zsh.

The plugin, which recently launched, does one thing really well. When you change directories into one for a project managed by Glide it sets your $GOPATH properly for the project. It essentially does the intention of the glide in command.

Installing the project into your Zsh environment is really quite painless and fast. Start by getting the Zsh plugin:

$ cd ~/.oh-my-zsh/custom/plugins
$ git clone https://github.com/technosophos/glide-zsh glide

Once you have the plugin add it to the list of plugins in your .zshrc file. For example:

plugins=(git brew glide)

Here glide has been added alongside the git and brew plugins.