5
10

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.

anyenvに移行しました

Posted at

概要

最近はDockerというすごく便利なものに環境を閉じ込めちゃうぅぅんですが、プロジェクトによってはDockerがどこにもないプロジェクトもあるのです
そういうプロジェクトではRubyとかGoやらのバージョンを切り替えるのが面倒(homebrew cleanした時に昔のバージョンは消え去る)なので~envを導入しました
phpenvは他の~envと競合してしまいうまく動作しなかったりするのでanyenvを導入することにしました

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.

うんわかりやすい!!

ついでにnodebrewを捨ててndenvに移行することにしました
(nodebrewに恨みは)ないです

方法

git clone https://github.com/riywo/anyenv ~/.anyenv
exec $SHELL -l
anyenv install goenv
anyenv install rbenv
anyenv install pyenv
anyenv install phpenv
anyenv install ndenv

# ここから先はお好みで入れるんだ!!
[ ! -d $(pyenv root)/plugins/pyenv-virtualenv ] && git clone https://github.com/yyuu/pyenv-virtualenv $(pyenv root)/plugins/pyenv-virtualenv
[ ! -d $(rbenv root)/plugins/rbenv-default-gems ] && git clone -q https://github.com/rbenv/rbenv-default-gems.git $(rbenv root)/plugins/rbenv-default-gems

rbenv root~/.anyenv/envs/rbenvを展開した場所になります

設定

.zshrc
export PATH=$HOME/.anyenv/bin:$PATH
eval "$(anyenv init - --no-rehash)"

たったこれだけです
--no-rehash付けておかないとenv系全てでrehashを実行されてshellを立ち上げるたびに2、3秒待たされる羽目になるので絶対つけるんだぞ(1敗)

ところでフォントはお好きですか?

Cicaフォントという日本語合成フォントを最近知って、使ってみるとすごくみやすく可愛らしいのでオススメさせてください
見た目はこちらのリンクからCicaスクリーンショットを確認してね

Mac OS Xでhomebrew使っているなら下のスクリプトでダウンロードできます

brew install fontforge unar
git clone --recursive git@github.com:miiton/Cica.git
cd Cica
wget http://font.ubuntu.com/download/ubuntu-font-family-0.83.zip
unar ubuntu-font-family-0.83.zip
cp ubuntu-font-family-0.83/UbuntuMono-R.ttf ./sourceFonts
wget https://osdn.jp/downloads/users/8/8598/rounded-mgenplus-20150602.7z
unar rounded-mgenplus-20150602.7z
cp rounded-mgenplus-20150602/rounded-mgenplus-1m-regular.ttf ./sourceFonts
cp rounded-mgenplus-20150602/rounded-mgenplus-1m-bold.ttf ./sourceFonts
wget https://github.com/konpa/devicon/raw/master/fonts/devicon.ttf -O ./sourceFonts/devicon.ttf
wget https://github.com/googlei18n/noto-emoji/raw/master/fonts/NotoEmoji-Regular.ttf -O sourceFonts/NotoEmoji-Regular.ttf
mkdir tmp
mkdir Cica
./cica_generator.sh auto
cp -f Cica/Cica*.ttf ${HOME}/Library/Fonts/
fc-cache -vf
cd ..
rm -rf Cica
5
10
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
5
10

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?