introducing to anyenv

what is the point to do this?

in my case I can easily switch php version using phpenv

and no conflict between phpenv and rbenv

anyenv - all in one for **env

This is a simple wrapper for rbenv style environment managers. You don't have to git clone or modify your shell profile for each **env anymore if you install anyenv.

INSTALL

$ git clone https://github.com/riywo/anyenv ~/.anyenv
$ echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.your_profile
$ echo 'eval "$(anyenv init -)"' >> ~/.your_profile
$ exec $SHELL -l

USAGE

$ anyenv install rbenv
$ anyenv install plenv
$ anyenv install pyenv
$ anyenv install phpenv
$ anyenv install ndenv
$ anyenv install denv
$ anyenv install jenv
$ anyenv install luaenv
$ anyenv install goenv
$ exec $SHELL -l
…
$ anyenv version
denv: 2.063 (set by /home/riywo/.anyenv/envs/denv/version)
jenv: system (set by /home/riywo/.anyenv/envs/jenv/version)
luaenv: system (set by /home/riywo/.anyenv/envs/luaenv/version)
ndenv: v0.10.12 (set by /home/riywo/.anyenv/envs/ndenv/version)
phpenv: system (set by /home/riywo/.anyenv/envs/phpenv/version)
plenv: 5.18.0 (set by /home/riywo/.anyenv/envs/plenv/version)
pyenv: venv27 (set by /home/riywo/.anyenv/envs/pyenv/version)
rbenv: 1.9.3-p327 (set by /home/riywo/.anyenv/envs/rbenv/version)
goenv: 1.2.2

PLUGINS

For ubuntu

installing things

git clone https://github.com/riywo/anyenv ~/.anyenv
echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.profile
echo 'eval "$(anyenv init -)"' >> ~/.profile
exec $SHELL -l
mkdir -p $(anyenv root)/plugins
git clone https://github.com/znz/anyenv-update.git $(anyenv root)/plugins/anyenv-update
git clone https://github.com/znz/anyenv-git.git $(anyenv root)/plugins/anyenv-git
anyenv install rbenv
anyenv install pyenv
exec $SHELL -l
rbenv install 2.2.2
rbenv global 2.2.2hoge

git clone git://github.com/jf/rbenv-gemset.git $(anyenv root)/envs/rbenv/plugins/rbenv-gemset
git clone https://github.com/sstephenson/rbenv-gem-rehash.git $(anyenv root)/envs/rbenv/plugins/rbenv-gem-rehash
gem update --system
gem install bundler