Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sonots/godenv
godenv enables to set GOPATH environment variable in each project directory.
https://github.com/sonots/godenv
Last synced: about 2 months ago
JSON representation
godenv enables to set GOPATH environment variable in each project directory.
- Host: GitHub
- URL: https://github.com/sonots/godenv
- Owner: sonots
- Created: 2014-02-03T09:48:15.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-03T10:47:58.000Z (almost 11 years ago)
- Last Synced: 2024-10-13T08:08:51.842Z (3 months ago)
- Homepage:
- Size: 156 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
godenv
========`godenv` enables to set GOPATH environment variable in each project directory.
This is actually just a wrapper script of [direnv](https://github.com/zimbatm/direnv).
## How to install
```bash
git clone http://github.com/zimbatm/direnv
cd direnv
make install
curl https://raw.github.com/sonots/godenv/master/godenv -o /usr/local/bin/
```## Add hook to shell
~/.zshrc
```
eval "$(godenv hook zsh)"
```## Create a project
```
$ godenv new project
```You will get `project` directory and `project/.envrc` file.
As `cd` to the project, `godenv` (actually envdir) will loads `.envrc` and set GOPATH, etc automatically.