Skip to content
A daily weekly monthly yearly something
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Others
c
css/PostCSS
database
go
iOS
javascript
node
php
python
ruby
sh
unity
.gitignore
LICENSE
README.md

README.md

sandbox

A daily weekly monthly yearly something

Config

CLI Editor setting

$ vi ~/.bashrc
---
### .bashrc ###
export EDITOR=vim

anyenv

pythonの場合はglobalに2系、3系をそれぞれ入れる。python2、python3と入力することで、それぞれのバージョンを起動できる

$ pyenv global 2.x.y 3.x.y

$ python2
$ python3

direnv インストール

プロジェクトディレクトリ別に環境変数を切り替えるためのもの。

参照 https://qiita.com/keitaMatsuo/items/466c6eabac4538d9de71

$ brew install direnv
$ echo 'eval "$(direnv hook bash)"' >> ~/.bash_profile

$ cd {project_dir}
$ direnv edit .
---
### {project_dir}/.envrc ###
export GOBIN=$(pwd)/bin
export GOPATH=$(pwd):$GOPATH
export PATH=$PATH:$GOBIN
---

$ direnv allow
$ direnv reload

You can’t perform that action at this time.