I am trying to open up a gem in Sublime Text, unsuccessfully. I have Bundler installed. Here is what is happening.
In the command line:
$bundle open Devise To open a bundled gem, set $EDITOR or $BUNDLER_EDITOR When I go to the Bundler website it says,
Open the source directory of the given bundled gem:
$ bundle open GEM
This opens the source directory of the provided GEM in your editor. For this to work the
EDITORorBUNDLER_EDITORenvironment variable has to be set.
I am new to all of this. What are the specific steps to set my EDITOR or BUNDLER_EDITOR environment variables? I'm on a Mac, using Sublime Text.
Thank you.
Assuming you're using the bash shell, you'll want to edit either your ~/.bashrc or ~/.bash_profile with:
export EDITOR=<editor name> Example, specifically for Sublime:
export EDITOR='subl -w' See: Sublime OS X Command Line docs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With