Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
19
Help us understand the problem. What is going on with this article?
@sutoh

既に入っている**envを全てanyenv管理にする

More than 3 years have passed since last update.

こんな状況。goenv入れようと思ったらインストールよく分からんの人だったので、anyenvから入れたら速攻入った。
もうanyenv管理してやろと思い、入れなおしは面倒だった。
なんとかanyenvそのまま突っ込めないかなと思ったら突っ込めた話。

現状

$ ls -d ~/.*env
/Users/hoge/.anyenv
/Users/hoge/.pyenv
/Users/hoge/.rbenv

移動

$ mv .rbenv ~/.anyenv/envs/rbenv
$ mv .pyenv ~/.anyenv/envs/pyenv

ファイル編集

**_profile の修正。こんな感じのやつらのパスを通さないようにする。

$ vim ~/.bash_profile
#export PATH="$HOME/.rbenv/bin:$PATH"
#eval "$(rbenv init -)"

#export PYENV_ROOT="$HOME/.pyenv"                                                                                                     
#export PATH="$PYENV_ROOT/bin:$PATH"                                                                                                  
#eval "$(pyenv init -)"   

確認

ターミナル再起動。

$ anyenv versions
goenv:
1.5
pyenv:
  system
* 2.7.11 (set by /Users/hoge/.anyenv/envs/pyenv/version)
  3.5.1
rbenv:
  system
* 2.2.2 (set by /Users/hoge/.anyenv/envs/rbenv/version)
  2.3.0-preview1

♡anyenv

19
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
sutoh
しゃちょうちゃん

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
19
Help us understand the problem. What is going on with this article?