New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Externalize env/plugin list #46

Open
riywo opened this Issue Oct 21, 2016 · 6 comments

Comments

Projects
None yet
3 participants
@riywo
Copy link
Owner

riywo commented Oct 21, 2016

I'm considering about splitting anyenv itself and env/plugin list. So far this repository consists both of them and the env/plugin list is a kind of recommendation, then this repository has to be kept updated.

If you can specify your own list outside this repository and share the list, you and your team can customize the catalog of env/plugin without modifying this repository.

Here are the images:

$ ls ~/.anyenv-config/
pyenv    rbenv

$ cat ~/.anyenv-config/rbenv
install_env "https://github.com/rbenv/rbenv.git" "master"
install_plugin "ruby-build" "https://github.com/rbenv/ruby-build.git" "master"

$ anyenv install -l
Available **envs:
  pyenv
  rbenv    
@riywo

This comment has been minimized.

Copy link
Owner

riywo commented Oct 21, 2016

Any thoughts?

@z0rc

This comment has been minimized.

Copy link

z0rc commented Oct 21, 2016

This looks good for me. But I'd really like to see that ~/.anyenv-config path is replaced by $XDG_CONFIG_HOME/anyenv or ~/.config/anyenv if XDG_CONFIG_HOME is not set. Please don't pollute our $HOMEs with unnecessary top level dotfiles. XDG spec is more than a decade old, we really should follow it. Even on servers, there are lots of applications that follow this spec, like systemd, mc, htop, git and so on.

@z0rc

This comment has been minimized.

Copy link

z0rc commented Oct 21, 2016

On the second thought, I believe user needs a template, default config, or samples to build his/her own config. Probably this can be covered as a documentation.

@minhoryang

This comment has been minimized.

Copy link

minhoryang commented Oct 25, 2016

totally agreed with @z0rc

@riywo

This comment has been minimized.

Copy link
Owner

riywo commented Dec 27, 2018

Hi, I've published a draft version of this feature in the new repositories:

Please try it out and give me any feedback! (cc: @z0rc @minhoryang @ndxbn )

@riywo

This comment has been minimized.

Copy link
Owner

riywo commented Dec 27, 2018

You can customize install manifest just modifying ~/.config/anyenv/anyenv-install directory (or $XDG_CONFIG_HOME/anyenv/anyenv-install).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment