Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ruby bundle open, set $EDITOR

I am trying to use the command line to open the the jquery-rails gem. I am using the command: bundle open jquery-rails and I am getting the message returned: To open a bundled gem, set $EDITOR or $BUNDLE_EDITOR

Forgive me if this is totally newb, but how do I set my text editor Notepad++ like the message is telling me to? I am using windows vista/Rails 3.1

Thanks for any advice.

like image 341
kdub Avatar asked Sep 14 '11 03:09

kdub


2 Answers

vi ~/.bashrc or ~/.zshrc or whatever you have:

export EDITOR=vim
like image 151
Anatoly Avatar answered Oct 31 '22 22:10

Anatoly


Because you mentioned Notepad++ I suppose you are working with Windows. You need to set an environment variable called EDITOR containing the path to Notepad++.

like image 23
Simone Carletti Avatar answered Oct 31 '22 23:10

Simone Carletti