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
- Host: GitHub
- URL: https://github.com/heyvito/goenv.zsh
- Owner: heyvito
- License: mit
- Created: 2022-02-22T22:39:20.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-29T23:10:37.000Z (over 3 years ago)
- Last Synced: 2025-06-03T04:22:56.840Z (6 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zsh-plugins - goenv (heyvito) - Automatically reads `.goenv` files in the current directory and sets `GOPRIVATE` environment variables. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - goenv (heyvito) - Automatically reads `.goenv` files in the current directory and sets `GOPRIVATE` environment variables. (Plugins / ZSH on Windows)
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.