12
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

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

Last updated at Posted at 2016-06-22

こんな状況。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

12
18
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
18

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?