Giter Site home page Giter Site logo

goenv's Introduction

goenv

Antigen plugin to manage $GOPATH similarly to Python's virtualenvwrapper.

I'm sure this can also be used with vanilla oh-my-zsh (or prezto), but I'm not sure exactly how. If you figure it out - please open a pull request, as I'd love to know.

installation

In .zshrc:

antigen-use oh-my-zsh
antigen bundle bbenne10/goenv
antigen apply

In .zshenv:

export GO_ENV=~/.goenvs

$GO_ENV works exactly the same as $WORKON_HOME in virtualenvwrapper's world. It answers the questions "Where should centralized go environments be stored?" Note: Should this env variable be unset, it will be initalized on plugin load to $HOME/.goenvs.

usage

This exports two main functions:

  • make_go_workspace - To create new workspaces under $GO_ENV. Takes one argument: the workspace name to make.

  • goworkon - To use a particular workspace which has been created previously. Takes one argument: the workspace name to begin work on.

TODO

  • function (similar to pyenv, virtualenv{,wrapper} and git plugins) to add $GOPATH to $PS1
  • remove_go_workspace (== rmvirtualenv from virtualenvwrapper)
  • deactivate support. This should restore the $GOPATH that was present before we set it.

goenv's People

Contributors

bbenne10 avatar gmacon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.