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.
This repository is under development. All feedback are welcome! See https://github.com/anyenv/anyenv/issues
anyenv
$ brew install anyenv
$ anyenv init
Follow the printed instructions.
You’ll see a warning if you don’t have manifest directory.
ANYENV_DEFINITION_ROOT(/Users/riywo/.config/anyenv/anyenv-install) doesn't exist. You can initialize it by:
> anyenv install --init
~/.anyenv
. $ git clone https://github.com/anyenv/anyenv ~/.anyenv
~/.anyenv/bin
to your $PATH
for access to the anyenv
command-line utility.
$ echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.bash_profile
$ echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.bashrc
$ echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.zshrc
$ set -Ux fish_user_paths $HOME/.anyenv/bin $fish_user_paths
$ ~/.anyenv/bin/anyenv init
Follow the printed instructions.
You’ll see a warning if you don’t have manifest directory.
ANYENV_DEFINITION_ROOT(/Users/riywo/.config/anyenv/anyenv-install) doesn't exist. You can initialize it by:
> anyenv install --init
If you want, you can initialize install manifest directory with anyenv/anyenv-install.
If you have own manifest repository, you can specify it:
$ anyenv install --init https://github.com/foo/anyenv-install.git
Manifest directory doesn't exist: /Users/riywo/.config/anyenv/anyenv-install
Do you want to checkout https://github.com/foo/anyenv-install.git? [y/N]:
Install any **env in your manifest directory:
$ anyenv install rbenv
$ anyenv install pyenv
$ anyenv install nodenv
$ exec $SHELL -l
$ rbenv install ...
$ pyenv install ...
$ nodenv install ...
Update your manifest directory:
ANYENV_DEFINITION_ROOT
This is the directory containing install manifests. Manifests should be directly under this directory:
$ tree ~/.config/anyenv/anyenv-install
/Users/riywo/.config/anyenv/anyenv-install
├── Renv
...
├── scalaenv
└── swiftenv
If it is not defined by user, it uses fallbacks:
${XDG_CONFIG_HOME}/anyenv/anyenv-install
if ${XDG_CONFIG_HOME}
is defined${HOME}/.config/anyenv/anyenv-install
by default