If you installed RVM on your machine, you may notice that there are /usr/local/bin twins in your PATH. It was annoying for me.

echo $PATH #이 명령을 실행하면 아래와 같이 출력된다. /usr/local/rvm/gems/ruby-1.9.2-p136/bin:/usr/local/rvm/gems/ruby-1.9.2-p136@global/bin:/usr/local/rvm/rubies/ruby-1.9.2-p136/bin:/usr/local/bin:/usr/local/bin:/opt/local/bin:/usr/bin:/bin:/usr/local/sbin:/opt/local/sbin:/usr/sbin:/sbin:/opt/X11/bin:/usr/X11/bin:/Users/nulonge/bin:. That’s why the RVM environment script intercepts your PATH and inserts the unwanted brother, /usr/local/bin. You can remove one of them by editing environment file in RVM directory. Unfortunately, I installed RVM system-wide, I don’t know where you can find it in basic installation. In my case, I could find it in /usr/local/rvm/environments/ In there, you can see configuration files, as many as the number of RUBY versions you install on yours. As for me, I just installed one instance, 1.9.2-p136. Whatever you installed, just remove /usr/local/bin: in the default file, if you set, for example, rvm –default 1.9.2. That’s all you do. Edit the 1st line of the default or environment file of you own. Before edit export PATH=“/usr/local/rvm/gems/ruby-1.9.2-p136/bin:/usr/local/rvm/gems/ruby-1.9.2-p136@global/bin:/usr/local/rvm/rubies/ruby-1.9.2-p136/bin:/usr/local/bin:$PATH”

After edit

export PATH=“/usr/local/rvm/gems/ruby-1.9.2-p136/bin:/usr/local/rvm/gems/ruby-1.9.2-p136@global/bin:/usr/local/rvm/rubies/ruby-1.9.2-p136/bin:\$PATH”

Perfect!