Reputation: 2332
How can I open gem for editing in Rubymine? I use this command bundle open gem_name
, but got this error: To open a bundled gem, set $EDITOR or $BUNDLER_EDITOR
So I need to locate, where my Rubymine is installed and then add $EDITOR variable. How can I do this in Ubuntu?
Upvotes: 1
Views: 721
Reputation: 230336
In rubymine, run Tools -> Create command-line launcher
. This will create a small script called mine
(or rubymine
) in your /usr/local/bin
.
Now that it is in the $PATH
, you can simply do
export EDITOR=mine
(add this to your ~/.bashrc
or whatever shell init script you use)
Upvotes: 1