An open API service indexing awesome lists of open source software.

https://github.com/heyvito/goenv.zsh

goenv plugin for zsh
https://github.com/heyvito/goenv.zsh

Last synced: 3 months ago
JSON representation

goenv plugin for zsh

Awesome Lists containing this project

README

          

# goenv

## Description

This plugin automatically reads `.goenv` files in the `pwd`, and sets `GOPRIVATE` environment variables.

To use it:

1. `cd` to your zsh plugin directory. For instance, if you use oh-my-zsh, you will find it over `~/.oh-my-zsh/plugins`
2. Clone this repository: `git clone https://github.com/heyvito/goenv.zsh.git goenv`
3. Add the `goenv` plugin to your `plugins` array in `~/.zshrc`:

```zsh
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.