feat(goenv): adding new plugin for 'goenv'

This commit is contained in:
Greg Wang 2021-07-08 01:20:19 +00:00 committed by GitHub
commit f24d4bd36c
2 changed files with 57 additions and 0 deletions

15
plugins/goenv/README.md Normal file
View file

@ -0,0 +1,15 @@
# goenv
This plugin looks for [goenv](https://github.com/syndbg/goenv), a Simple Go-lang version
management system, and loads it if it's found.
To use it, add `goenv` to the plugins array in your zshrc file:
```zsh
plugins=(... goenv)
```
## Functions
- `goenv_prompt_info`: displays the Go-lang version in use by goenv; or the global Go-lang
version, if goenv wasn't found.