This plugin automatically reads .goenv
files in the pwd
, and sets GOPRIVATE
environment variables.
To use it:
cd
to your zsh plugin directory. For instance, if you use oh-my-zsh, you will find it over~/.oh-my-zsh/plugins
- Clone this repository:
git clone https://github.com/heyvito/goenv.zsh.git goenv
- Add the
goenv
plugin to yourplugins
array in~/.zshrc
:
plugins=(... goenv)
Once the plugin is loaded, it will automatically lookup .goenv
files whenever the current directory changes, and will automatically set GOPRIVATE
as defined in such file.