anyenv

All in one for **env

  • 所有者: anyenv/anyenv
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

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/anyenv
主編程語言Shell
編程語言Shell (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2013-06-11 07:16:13
推送於2023-12-16 04:48:42
最后一次提交2022-08-14 18:33:35
發布數8
最新版本名稱v1.1.5 (發布於 )
第一版名稱v1.0.0 (發布於 )
用户参与
星數1.9k
關注者數48
派生數94
提交數145
已啟用問題?
問題數43
打開的問題數7
拉請求數54
打開的拉請求數3
關閉的拉請求數12
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?