Git Product home page Git Product logo

anyenv-install's Introduction

anyenv logo

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.

Feedback required!

This repository is under development. All feedback are welcome! See https://github.com/anyenv/anyenv/issues

Getting started

1. Install and configure anyenv

Homebrew (for macOS user)

  1. Install anyenv
$ brew install anyenv
  1. Set up anyenv in your shell.
$ anyenv init

Follow the printed instructions.

  1. Close your Terminal window and open a new one so your changes take effect.

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

Manual git checkout

  1. Clone anyenv into ~/.anyenv.
$ git clone https://github.com/anyenv/anyenv ~/.anyenv
  1. Add ~/.anyenv/bin to your $PATH for access to the anyenv command-line utility.
    • For bash:

      $ echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.bash_profile
      
    • For Ubuntu Desktop:

      $ echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.bashrc
      
    • For Zsh:

      $ echo 'export PATH="$HOME/.anyenv/bin:$PATH"' >> ~/.zshrc
      
    • For Fish shell:

      $ set -Ux fish_user_paths $HOME/.anyenv/bin $fish_user_paths
      
  2. Set up anyenv in your shell.
$ ~/.anyenv/bin/anyenv init

Follow the printed instructions.

  1. Close your Terminal window and open a new one so your changes take effect.

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

2. Initialize install manifest directory

If you want, you can initialize install manifest directory with anyenv/anyenv-install.

anyenv install --init

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]:

Usage

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 install --update

Configuration

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

Plugins

anyenv-install's People

Contributors

brianstrand-brt avatar ephemeralsnow avatar patthesilent avatar paveg avatar riywo avatar tomiacannondale avatar ytaka avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar

anyenv-install's Issues

tfenv installation causes trouble.

After I installed tfenv through anyenv and do exec -l $SHELL, I have met following error message:

no such command 'init'
Usage: tfenv <command> [<options>]

Commands:
   install       Install a specific version of Terraform
   use           Switch a version to use
   uninstall     Uninstall a specific version of Terraform
   list          List all installed versions
   list-remote   List all installable versions

This message raise from anyenv init - command invoked from ~/.profile.

$ anyenv --debug init - 2>&1
... ommited ...
++ [anyenv-init:143] /home/kaznak/.anyenv/envs/tfenv/bin/tfenv init - bash
... ommited ...

tfenv is useful but lacks an init subcommand which other *envs installable from anyenv have.

Helmenv to Anyenv

Adding helmenv woud be useful

$ > cat helmenv
install_env https://github.com/yuya-takeyama/helmenv.git

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.