Giter VIP home page Giter VIP logo

anyenv's Introduction

rbenv, but for anything

This is an implementation of rbenv that aims to be agnostic about what kind of software it is managing versions for. With names of configuration files and variables such as .ruby-version, RBENV_VERSION, etc. being configurable, this project could in theory manage multiple versions of anything and should be able to replace rbenv, pyenv, phantomenv, nodenv and other rbenv-inspired projects.

Build your own version manager

For example, let's say you want to build pyenv with this:

  1. Clone this project into your GOPATH;

  2. Run make with appropriate configuration:

    $ PROGRAM_NAME=pyenv PROGRAM_EXECUTABLE=python make
  3. Move the resulting pyenv binary somewhere into your PATH;

  4. Marvel at how you can now run pyenv version and other commands. This binary is hardcoded to respect:

  • .python-version local files,
  • PYENV_VERSION,
  • PYENV_ROOT,
  • PYENV_DIR.

A work in progress 🚧

Rbenv commands implemented so far:

  • rbenv
  • rbenv---version
  • rbenv-commands
  • rbenv-completions
  • rbenv-exec
  • rbenv-global
  • rbenv-help
  • rbenv-hooks ⚠️
  • rbenv-init
  • rbenv-local
  • rbenv-prefix
  • rbenv-rehash
  • rbenv-root
  • rbenv-sh-rehash
  • rbenv-sh-shell
  • rbenv-shims
  • rbenv-version
  • rbenv-version-file
  • rbenv-version-file-read
  • rbenv-version-file-write
  • rbenv-version-name
  • rbenv-version-origin
  • rbenv-versions
  • rbenv-whence
  • rbenv-which

⚠️ Big hurdle to overcome: support rbenv plugin (hook) system that is right now dependent on sourcing bash scripts.

Stay tuned.

anyenv's People

Contributors

mislav avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

anyenv's Issues

Name collision

I'm working on a project called anyenv, which is in the same space, but different. I registered domains, etc. Why did you change from everyenv to anyenv?

Can I manage vim versions with everyenv?

Hey,
can I use everyenv to manage vim versions on my system?

For example, on OSX there's a system vim in /usr/bin/vim. I also wanna install latest stable release via brew and the latest version from HEAD.
Now I'd like to be able to see which versions I have installed and easily switch from one to another for the purpose of playing and debugging. Having a .ruby-version file equivalent is not important at all.

Would this be possible? And how?

Thanks a lot!

Support for multiple activated versions

pyenv support multiple versions.

It will try the versions in order.

% python --version
Python 3.4.3

% pyenv shell 2.7.9:3.4.3
% python --version
Python 2.7.9


% pyenv version
3.4.3 (set by /home/user/.pyenv/version)
2.7.9 (set by /home/user/.pyenv/version)

% cat .pyenv/version
3.4.3
2.7.9

% pyenv version-name 
3.4.3:2.7.9

% pyenv versions 
  system
  …
* 2.7.9 (set by /home/daniel/.pyenv/version)
  …
* 3.4.3 (set by /home/daniel/.pyenv/version)
  …

When trying to run a shim from a version that's not activated, you'll see
a list of versions where it is available (that might be the case for
rbenv/anyenv already):

% easy_install-2.6 
pyenv: easy_install-2.6: command not found

The `easy_install-2.6' command exists in these Python versions:
  2.6.9

Windows support

Could anyenv support Windows, preferably Command Prompt, but PowerShell would also be great?

There appears to be no Python version manager for Windows. If anyenv supported Windows, then that would significantly help Python projects in Windows environments!

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.