Reputation: 767
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.
Upvotes: 9
Views: 8241
Reputation: 307
don't forget to reload your bash session after setting export EDITOR="vim"
in ~/bashrc
Upvotes: 0
Reputation: 786
If you use zsh on Mac OS X,add this line of code into .zshrc
file:
export EDITOR="mvim"
That will make macvim
to open the gem.
Upvotes: 0
Reputation: 176532
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++.
Upvotes: 13
Reputation: 15530
vi ~/.bashrc or ~/.zshrc or whatever you have:
export EDITOR=vim
Upvotes: 17