Posted at

`bundle exec rails`とか`bin/rails`とか打ちたくない

More than 5 years have passed since last update.

$ brew install direnv

$ cd /path/to/rails_project
$ vim .envrc

export PATH=$PWD/bin:$PATH

$ direnv allow

direnv: loading .envrc
direnv: export ~PATH
$ which rails
/path/to/rails_project/bin/rails